mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +00:00
Use abort in check-plt and update doc
This commit is contained in:
parent
be209f24ff
commit
300a4ac22e
1 changed files with 3 additions and 3 deletions
|
@ -119,7 +119,7 @@ dialyze(Config, File) ->
|
|||
end,
|
||||
ok.
|
||||
|
||||
%% @doc Check whether the PLT is up-to-date (rebuilding it if not).
|
||||
%% @doc Check whether the PLT is up-to-date.
|
||||
-spec 'check-plt'(Config::rebar_config:config(), File::file:filename()) -> ok.
|
||||
'check-plt'(Config, File) ->
|
||||
Plt = existing_plt_path(Config, File),
|
||||
|
@ -128,10 +128,10 @@ dialyze(Config, File) ->
|
|||
?CONSOLE("The PLT ~s is up-to-date~n", [Plt]);
|
||||
_ ->
|
||||
%% @todo Determine whether this is the correct summary.
|
||||
?CONSOLE("The PLT ~s is not up-to-date~n", [Plt])
|
||||
?ABORT("The PLT ~s is not up-to-date~n", [Plt])
|
||||
catch
|
||||
throw:{dialyzer_error, _Reason} ->
|
||||
?CONSOLE("The PLT ~s is not valid.~n", [Plt])
|
||||
?ABORT("The PLT ~s is not valid.~n", [Plt])
|
||||
end,
|
||||
ok.
|
||||
|
||||
|
|
Loading…
Reference in a new issue