Fixed error formatting
This commit is contained in:
@@ -540,7 +540,7 @@ init(Options) ->
|
|||||||
Port = open_port({spawn, create_port_cmd(DbFile)}, [binary]),
|
Port = open_port({spawn, create_port_cmd(DbFile)}, [binary]),
|
||||||
{ok, #state{port = Port, ops = Options}};
|
{ok, #state{port = Port, ops = Options}};
|
||||||
{error, Error} ->
|
{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)}
|
{stop, lists:flatten(Msg)}
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user