diff options
author | Gustav Simonsson <[email protected]> | 2012-03-01 14:37:40 +0100 |
---|---|---|
committer | Gustav Simonsson <[email protected]> | 2012-03-01 14:37:40 +0100 |
commit | 0252b3c7d9b1cc7457179bc3ed5f7ffdfae68827 (patch) | |
tree | e205125e9c045eb27dd4bf31017a7df0416e6d82 /lib | |
parent | f76bc89ede20e943a03f7ac41f48c00fe049e77e (diff) | |
parent | 1bc4f4c35876a8dcccad66129e68f602751f6e36 (diff) | |
download | otp-0252b3c7d9b1cc7457179bc3ed5f7ffdfae68827.tar.gz otp-0252b3c7d9b1cc7457179bc3ed5f7ffdfae68827.tar.bz2 otp-0252b3c7d9b1cc7457179bc3ed5f7ffdfae68827.zip |
Merge branch 'maint'
Diffstat (limited to 'lib')
-rw-r--r-- | lib/kernel/src/auth.erl | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/kernel/src/auth.erl b/lib/kernel/src/auth.erl index c329a5652a..252c20ac4e 100644 --- a/lib/kernel/src/auth.erl +++ b/lib/kernel/src/auth.erl @@ -381,13 +381,17 @@ create_cookie(Name) -> case {R1, R2} of {ok, ok} -> ok; - {{error,_Reason}, _} -> - {error, "Failed to create cookie file"}; + {{error,Reason}, _} -> + {error, + lists:flatten( + io_lib:format("Failed to write to cookie file '~s': ~p", [Name, Reason]))}; {ok, {error, Reason}} -> {error, "Failed to change mode: " ++ atom_to_list(Reason)} end; - {error,_Reason} -> - {error, "Failed to create cookie file"} + {error,Reason} -> + {error, + lists:flatten( + io_lib:format("Failed to create cookie file '~s': ~p", [Name, Reason]))} end. random_cookie(0, _, Result) -> |