Anton Lebedevich 13 years ago
parent
commit
9bc802833f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/pgsql_sock.erl

+ 1 - 1
src/pgsql_sock.erl

@@ -411,7 +411,7 @@ auth({error, E}, State) ->
         <<"28P01">> -> Why = invalid_password;
         Any         -> Why = Any
     end,
-    {stop, normal, finish(State, Error)};
+    {stop, normal, finish(State, {error, Why})};
 
 auth(Other, State) ->
     on_message(Other, State).