mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 11:06:20 +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
|
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).
|
||||||
|
|
Loading…
Reference in a new issue