Use init:stop/1 over halt/1 to ensure all I/O gets a chance to flush

This commit is contained in:
Dave Smith 2010-02-05 13:16:21 -07:00
parent 2734f2bcc2
commit 30a3816c86

View file

@ -5,7 +5,7 @@
-define(FAIL, throw({error, failed})). -define(FAIL, throw({error, failed})).
-define(ABORT(Str, Args), ?ERROR(Str, Args), halt(1)). -define(ABORT(Str, Args), ?ERROR(Str, Args), init:stop(1)).
-define(CONSOLE(Str, Args), io:format(Str, Args)). -define(CONSOLE(Str, Args), io:format(Str, Args)).