mirror of
https://github.com/mikpe/pdp10-tools.git
synced 2026-04-26 03:58:09 +00:00
nm: correct handling of error Reason from getopt:parse/3
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user