You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original reporter: mikael pettersson
Affected version: Not Specified
Fixed in version: OTP-24.0
Component: erts
Migrated from: https://bugs.erlang.org/browse/ERL-1338
The expectation of a command-line tool is that errors are printed to standard error, leaving standard output for normal non-erroneous output.
However if an escript fails (its main/1 throws an exception), escript:start/1 prints its error diagnostics to standard output.
I would prefer that escript.erl printed all errors to standard error, but I suspect that backwards compatibility prevents that. An alternative could be to introduce an option to the escript program, e.g. "-e", which would direct all its errors to standard error.
The text was updated successfully, but these errors were encountered:
We agreed that this would be nice. It should be ok to break backward compatibility for this.
We'll take a look when time allows. As always a PR would be much appreciated.
Original reporter:
mikael pettersson
Affected version:
Not Specified
Fixed in version:
OTP-24.0
Component:
erts
Migrated from: https://bugs.erlang.org/browse/ERL-1338
The text was updated successfully, but these errors were encountered: