aboutsummaryrefslogtreecommitdiffstats
path: root/src/mysqlerl_connection.erl
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2008-03-01 14:25:54 -0500
committerBrian Cully <bjc@kublai.com>2008-03-01 14:25:54 -0500
commitd365c3a2be018d93125163974547623cde2b4675 (patch)
tree4a324e286b86057a741ec88cbd18936e57919f0b /src/mysqlerl_connection.erl
parent5c0b622f88b8d438fa85f47f45db54b5bdf167c2 (diff)
downloadmysqlerl-d365c3a2be018d93125163974547623cde2b4675.tar.gz
mysqlerl-d365c3a2be018d93125163974547623cde2b4675.zip
Crash if we get a bad message.
Diffstat (limited to 'src/mysqlerl_connection.erl')
-rw-r--r--src/mysqlerl_connection.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mysqlerl_connection.erl b/src/mysqlerl_connection.erl
index ca44252..bc515a2 100644
--- a/src/mysqlerl_connection.erl
+++ b/src/mysqlerl_connection.erl
@@ -77,7 +77,7 @@ handle_query(Ref, Query) ->
Other ->
error_logger:warning_msg("Got unknown query response: ~p~n",
[Other]),
- {badreply, Other}
+ exit({badreply, Other})
end.
handle_test(Ref, Str) ->
@@ -88,5 +88,5 @@ handle_test(Ref, Str) ->
Other ->
error_logger:warning_msg("Got unknown test response: ~p~n",
[Other]),
- {badreply, Other}
+ exit({badreply, Other})
end.