Browse Source

Add spec: rebar_utils:abort/2 does not return

Thanks to Kostis for no_return() result type.
Tuncer Ayaz 14 years ago
parent
commit
79546e66ff
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/rebar_utils.erl

+ 1
- 0
src/rebar_utils.erl View File

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

Loading…
Cancel
Save