as: fix missed call to error:format/1

This commit is contained in:
Mikael Pettersson 2019-08-17 18:37:15 +02:00
parent 026bc3b8e2
commit 07d88d7697

View File

@ -34,7 +34,7 @@ main_(Argv) ->
OutFile = scan_options(Options),
case as(Files, OutFile) of
ok -> halt(0);
{error, _Reason} = Error -> escript_runtime:fatal("~p\n", [Error])
{error, Reason} -> escript_runtime:fatal("~s\n", [error:format(Reason)])
end;
{error, Reason} ->
escript_runtime:errmsg("~s\n", [error:format(Reason)]),