diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2018-04-20 17:34:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-20 17:34:49 -0700 |
commit | 1a07624457fec031e248589e3324f275bc318beb (patch) | |
tree | 6117b75a490747bbe859b4a174bc62fb93a959ea /src | |
parent | 9cfe33f97e83f060cb4394f0089c2998994af7f4 (diff) | |
parent | 3630a06a0131f8ad87e5b727a94ff5ffe1f6a611 (diff) |
Merge pull request #1758 from ferd/display-script-errors
Display script errors
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_config.erl | 2 | ||||
-rw-r--r-- | src/rebar_prv_escriptize.erl | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/rebar_config.erl b/src/rebar_config.erl index 7316d83..797dddc 100644 --- a/src/rebar_config.erl +++ b/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. diff --git a/src/rebar_prv_escriptize.erl b/src/rebar_prv_escriptize.erl index 4d767fd..fceb65e 100644 --- a/src/rebar_prv_escriptize.erl +++ b/src/rebar_prv_escriptize.erl @@ -267,7 +267,7 @@ rm_newline(String) -> [C || C <- String, C =/= $\n]. write_windows_script(Target) -> - CmdPath = Target ++ ".cmd", + CmdPath = unicode:characters_to_list(Target) ++ ".cmd", CmdScript= "@echo off\r\n" "setlocal\r\n" |