nm: correct handling of error Reason from getopt:parse/3

This commit is contained in:
Mikael Pettersson
2020-03-09 20:46:43 +01:00
parent aaca744f1c
commit a8277651b0

View File

@@ -76,8 +76,8 @@ main_(Argv) ->
]) of
{ok, {Options, Files}} ->
nm(scan_options(Options), Files);
{error, ErrMsg} ->
escript_runtime:errmsg("~s\n", [ErrMsg]),
{error, Reason} ->
escript_runtime:errmsg("~s\n", [error:format(Reason)]),
usage()
end.