Просмотр исходного кода

Merge pull request #1022 from ferd/badconfig-shell-error

Display error message when bad config is loaded
pull/1025/head
Tristan Sloughter 9 лет назад
Родитель
Сommit
10948be896
1 измененных файлов: 7 добавлений и 2 удалений
  1. +7
    -2
      src/rebar_prv_shell.erl

+ 7
- 2
src/rebar_prv_shell.erl Просмотреть файл

@ -325,9 +325,14 @@ reread_config(State) ->
no_config ->
ok;
ConfigList ->
_ = [application:set_env(Application, Key, Val)
try
[application:set_env(Application, Key, Val)
|| {Application, Items} <- ConfigList,
{Key, Val} <- Items],
{Key, Val} <- Items]
catch _:_ ->
?ERROR("The configuration file submitted could not be read "
"and will be ignored.", [])
end,
ok
end.

Загрузка…
Отмена
Сохранить