mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +00:00
Add spec: rebar_utils:abort/2 does not return
Thanks to Kostis for no_return() result type.
This commit is contained in:
parent
77660c5da6
commit
79546e66ff
1 changed files with 1 additions and 0 deletions
|
@ -123,6 +123,7 @@ ensure_dir(Path) ->
|
|||
Error
|
||||
end.
|
||||
|
||||
-spec abort(string(), [term()]) -> no_return().
|
||||
abort(String, Args) ->
|
||||
?ERROR(String, Args),
|
||||
halt(1).
|
||||
|
|
Loading…
Reference in a new issue