Преглед на файлове

Display error when rebar.config.script fails

This will at least display the script that failed with the stacktrace
before failing as usual, but without altering the return value.

This should make the common failure path more user-friendly without
breaking any existing behaviour that may have relied on the script file
working. If there's any unexpected side-effect, it will be visual only
rather than blocking full builds if ?ABORT were used.
pull/1758/head
Fred Hebert преди 7 години
родител
ревизия
6ab00567f5
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. +2
    -0
      src/rebar_config.erl

+ 2
- 0
src/rebar_config.erl Целия файл

@ -290,6 +290,8 @@ consult_and_eval(File, Script) ->
{ok, Term} ->
{ok, [Term]};
Error ->
?ERROR("Error evaluating configuration script at ~p:~n~p~n",
[Script, Error]),
Error
end.

Зареждане…
Отказ
Запис