diff options
author | Björn Gustavsson <[email protected]> | 2016-03-23 12:42:55 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2016-03-31 14:25:37 +0200 |
commit | 20ca1514787110037079e39bd10f00e0e3957ea7 (patch) | |
tree | 750a4e31a3d49bdd20f331651e8b362c803d4ebe /lib/kernel | |
parent | 3d70cee4034e4da37d125679345aa2a10c58cb34 (diff) | |
download | otp-20ca1514787110037079e39bd10f00e0e3957ea7.tar.gz otp-20ca1514787110037079e39bd10f00e0e3957ea7.tar.bz2 otp-20ca1514787110037079e39bd10f00e0e3957ea7.zip |
code: Remove 'bad_path' error code from set_path/1
code:set_path/1 no longer returns {error,bad_path} (an exception
will be thrown instead).
Diffstat (limited to 'lib/kernel')
-rw-r--r-- | lib/kernel/doc/src/code.xml | 2 | ||||
-rw-r--r-- | lib/kernel/src/code.erl | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/lib/kernel/doc/src/code.xml b/lib/kernel/doc/src/code.xml index 575f2f0b51..7598b22d79 100644 --- a/lib/kernel/doc/src/code.xml +++ b/lib/kernel/doc/src/code.xml @@ -330,8 +330,6 @@ zip:create("mnesia-4.4.7.ez", <item><p>If successful</p></item> <tag><c>{error, bad_directory}</c></tag> <item><p>If any <c><anno>Dir</anno></c> is not a directory name</p></item> - <tag><c>{error, bad_path}</c></tag> - <item><p>If the argument is invalid</p></item> </taglist> </desc> </func> diff --git a/lib/kernel/src/code.erl b/lib/kernel/src/code.erl index 0882cb170c..d1cb47f6ea 100644 --- a/lib/kernel/src/code.erl +++ b/lib/kernel/src/code.erl @@ -258,7 +258,7 @@ is_sticky(Mod) when is_atom(Mod) -> call({is_sticky,Mod}). -spec set_path(Path) -> 'true' | {'error', What} when Path :: [Dir :: file:filename()], - What :: 'bad_directory' | 'bad_path'. + What :: 'bad_directory'. set_path(PathList) when is_list(PathList) -> call({set_path,PathList}). -spec get_path() -> Path when |