ソースを参照

Use abort in check-plt and update doc

pull/3/head
David Reid 14年前
committed by Tuncer Ayaz
コミット
300a4ac22e
1個のファイルの変更3行の追加3行の削除
  1. +3
    -3
      src/rebar_dialyzer.erl

+ 3
- 3
src/rebar_dialyzer.erl ファイルの表示

@ -119,7 +119,7 @@ dialyze(Config, File) ->
end, end,
ok. 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. -spec 'check-plt'(Config::rebar_config:config(), File::file:filename()) -> ok.
'check-plt'(Config, File) -> 'check-plt'(Config, File) ->
Plt = existing_plt_path(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]); ?CONSOLE("The PLT ~s is up-to-date~n", [Plt]);
_ -> _ ->
%% @todo Determine whether this is the correct summary. %% @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 catch
throw:{dialyzer_error, _Reason} -> throw:{dialyzer_error, _Reason} ->
?CONSOLE("The PLT ~s is not valid.~n", [Plt])
?ABORT("The PLT ~s is not valid.~n", [Plt])
end, end,
ok. ok.

読み込み中…
キャンセル
保存