aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGustav Simonsson <[email protected]>2012-03-01 14:37:40 +0100
committerGustav Simonsson <[email protected]>2012-03-01 14:37:40 +0100
commit0252b3c7d9b1cc7457179bc3ed5f7ffdfae68827 (patch)
treee205125e9c045eb27dd4bf31017a7df0416e6d82 /lib
parentf76bc89ede20e943a03f7ac41f48c00fe049e77e (diff)
parent1bc4f4c35876a8dcccad66129e68f602751f6e36 (diff)
downloadotp-0252b3c7d9b1cc7457179bc3ed5f7ffdfae68827.tar.gz
otp-0252b3c7d9b1cc7457179bc3ed5f7ffdfae68827.tar.bz2
otp-0252b3c7d9b1cc7457179bc3ed5f7ffdfae68827.zip
Merge branch 'maint'
Diffstat (limited to 'lib')
-rw-r--r--lib/kernel/src/auth.erl12
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) ->