From e196e93c3511c04dfcc7a490037daf24b4b7f84a Mon Sep 17 00:00:00 2001 From: Alexey Romanov Date: Mon, 6 Dec 2010 18:09:36 +0300 Subject: [PATCH] Fixed error formatting --- src/sqlite3.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sqlite3.erl b/src/sqlite3.erl index 082ad05..4f0150e 100644 --- a/src/sqlite3.erl +++ b/src/sqlite3.erl @@ -540,7 +540,7 @@ init(Options) -> Port = open_port({spawn, create_port_cmd(DbFile)}, [binary]), {ok, #state{port = Port, ops = Options}}; {error, Error} -> - Msg = io_lib:format("Error loading ~p: ~p", [?DRIVER_NAME, erl_ddll:format_error(Error)]), + Msg = io_lib:format("Error loading ~p: ~s", [?DRIVER_NAME, erl_ddll:format_error(Error)]), {stop, lists:flatten(Msg)} end.