aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server/dispatcher.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/dispatcher.erl b/server/dispatcher.erl
index 9b4c61b..77e4ab9 100644
--- a/server/dispatcher.erl
+++ b/server/dispatcher.erl
@@ -34,8 +34,8 @@ handle({login, {Node, User, Password}}, Dict) ->
case client:start(Node) of
{ok, Pid} ->
{{ok, {logged_in, Pid}}, Dict};
- _ ->
- {{error, unable_to_login}, Dict}
+ Why ->
+ {{error, {unable_to_login, Why}}, Dict}
end;
_ ->
{{error, user_or_password_invalid}, Dict}