[erlang-questions] escript error handling

Anthony Howe achowe@REDACTED
Mon Feb 25 17:27:43 CET 2019

I have some Erlang (v19) command line tools built with "rebar3
escriptize".  I want my Erlang escript based tools to report any runtime
errors to stderr, not stdout, since all my other error messages go to
standard error.

I've tried creating a custom error handler and disabling the tty handler:


But that doesn't appear to work with an escript built tool since it
continues to write to standard out.

Anthony C Howe         	                                    SnertSoft
achowe@REDACTED       Twitter: SirWumpus       BarricadeMX & Milters
http://snert.com/      http://nanozen.info/     http://snertsoft.com/

More information about the erlang-questions mailing list