Better error responses. Fixes #1

This commit is contained in:
Maas-Maarten Zeeman
2012-10-29 23:57:27 +01:00
parent 6427431465
commit 661e417c90
3 changed files with 65 additions and 18 deletions

View File

@@ -52,8 +52,8 @@ open(Filename, Timeout) ->
case receive_answer(Ref, Timeout) of
ok ->
{ok, Connection};
Other ->
{error, Other}
{error, _Msg}=Error ->
Error
end.
%% @doc Execute a sql statement, returns a list with tuples.