From d365c3a2be018d93125163974547623cde2b4675 Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Sat, 1 Mar 2008 14:25:54 -0500 Subject: Crash if we get a bad message. --- src/mysqlerl_connection.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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. -- cgit v1.2.3