Skip to content

Commit

Permalink
Use abort in check-plt and update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
David Reid authored and Tuncer Ayaz committed Apr 2, 2011
1 parent be209f2 commit 300a4ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rebar_dialyzer.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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.

Expand Down

0 comments on commit 300a4ac

Please sign in to comment.