diff options
Diffstat (limited to 'server/dispatcher.erl')
-rw-r--r-- | server/dispatcher.erl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/server/dispatcher.erl b/server/dispatcher.erl index 08b19ec..b5d8aba 100644 --- a/server/dispatcher.erl +++ b/server/dispatcher.erl @@ -61,8 +61,10 @@ handle({login, {Node, User, Password}}, State) -> Why -> {{error, {unable_to_login, Why}}, State} end; - Why -> - {{error, {user_or_password_invalid, Why}}, State} + {error, Why} -> + {{error, Why}, State}; + _ -> + {{error, user_or_password_invalid}, State} end; handle({'EXIT', From, _}, State) -> |