aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2016-03-23 12:42:55 +0100
committerBjörn Gustavsson <[email protected]>2016-03-31 14:25:37 +0200
commit20ca1514787110037079e39bd10f00e0e3957ea7 (patch)
tree750a4e31a3d49bdd20f331651e8b362c803d4ebe /lib/kernel/src
parent3d70cee4034e4da37d125679345aa2a10c58cb34 (diff)
downloadotp-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/src')
-rw-r--r--lib/kernel/src/code.erl2
1 files changed, 1 insertions, 1 deletions
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