Add spec: rebar_utils:abort/2 does not return

Thanks to Kostis for no_return() result type.
This commit is contained in:
Tuncer Ayaz 2010-10-15 18:10:20 +02:00
parent 77660c5da6
commit 79546e66ff

View file

@ -123,6 +123,7 @@ ensure_dir(Path) ->
Error Error
end. end.
-spec abort(string(), [term()]) -> no_return().
abort(String, Args) -> abort(String, Args) ->
?ERROR(String, Args), ?ERROR(String, Args),
halt(1). halt(1).