From 30a3816c8649bbafb3695780c78c4eabbaa92eda Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Fri, 5 Feb 2010 13:16:21 -0700 Subject: [PATCH] Use init:stop/1 over halt/1 to ensure all I/O gets a chance to flush --- include/rebar.hrl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/rebar.hrl b/include/rebar.hrl index ad3e2e0..4d591c9 100644 --- a/include/rebar.hrl +++ b/include/rebar.hrl @@ -5,7 +5,7 @@ -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)).