summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2018-04-20 17:34:49 -0700
committerGitHub <noreply@github.com>2018-04-20 17:34:49 -0700
commit1a07624457fec031e248589e3324f275bc318beb (patch)
tree6117b75a490747bbe859b4a174bc62fb93a959ea /src
parent9cfe33f97e83f060cb4394f0089c2998994af7f4 (diff)
parent3630a06a0131f8ad87e5b727a94ff5ffe1f6a611 (diff)
Merge pull request #1758 from ferd/display-script-errors
Display script errors
Diffstat (limited to 'src')
-rw-r--r--src/rebar_config.erl2
-rw-r--r--src/rebar_prv_escriptize.erl2
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"