From 535992b56039bdec1cffac74de26a31d599d1452 Mon Sep 17 00:00:00 2001 From: Alexey Romanov Date: Tue, 19 Oct 2010 18:43:54 +0400 Subject: [PATCH] Removed possibility of accidentally handling gen_cast or gen_call in sqlite3:wait_result/1 --- src/sqlite3.erl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/sqlite3.erl b/src/sqlite3.erl index 8aaf012..5b7c569 100644 --- a/src/sqlite3.erl +++ b/src/sqlite3.erl @@ -613,10 +613,11 @@ wait_result(Port) -> Reply; {error, Reason} -> io:format("Error: ~p~n", [Reason]), - {error, Reason}; - _Else -> - io:format("Else: ~p~n", [_Else]), - _Else + {error, Reason} +%% ; +%% _Else -> +%% io:format("Else: ~p~n", [_Else]), +%% _Else end. exec(_Port, {create_function, _FunctionName, _Function}) ->