aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTristan Sloughter <[email protected]>2013-09-07 17:21:10 -0500
committerTristan Sloughter <[email protected]>2013-09-11 16:08:19 -0500
commit2f54b2d5360c52fff2c3f8fde73b29b6069174ea (patch)
tree74483a22063ac8714e5990affe6f50b497c61f75 /src
parenteb6a468640f8e417ab97f05400ee25b78b9480f1 (diff)
downloadrelx-2f54b2d5360c52fff2c3f8fde73b29b6069174ea.tar.gz
relx-2f54b2d5360c52fff2c3f8fde73b29b6069174ea.tar.bz2
relx-2f54b2d5360c52fff2c3f8fde73b29b6069174ea.zip
fix error messages
Diffstat (limited to 'src')
-rw-r--r--src/rlx_prv_assembler.erl4
-rw-r--r--src/rlx_rel_discovery.erl2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/rlx_prv_assembler.erl b/src/rlx_prv_assembler.erl
index 52894f2..b2f6451 100644
--- a/src/rlx_prv_assembler.erl
+++ b/src/rlx_prv_assembler.erl
@@ -87,7 +87,7 @@ format_error({relup_generation_warning, Module, Warnings}) ->
["Warnings generating relup \s",
rlx_util:indent(1), Module:format_warning(Warnings)];
format_error({relup_script_generation_error,
- {relupcript_generation_error, systools_relup,
+ {relup_script_generation_error, systools_relup,
{missing_sasl, _}}}) ->
"Unfortunately, due to requirements in systools, you need to have the sasl application "
"in both the current release and the release to upgrade from.";
@@ -434,7 +434,7 @@ make_upfrom_script(State, Release, UpFrom) ->
{ok,_, Module,Warnings} ->
?RLX_ERROR({relup_script_generation_warn, Module, Warnings});
{error,Module,Errors} ->
- ?RLX_ERROR({relupcript_generation_error, Module, Errors})
+ ?RLX_ERROR({relup_script_generation_error, Module, Errors})
end.
write_relup_file(State, Release, Relup) ->
diff --git a/src/rlx_rel_discovery.erl b/src/rlx_rel_discovery.erl
index c1e74fb..3cdca3e 100644
--- a/src/rlx_rel_discovery.erl
+++ b/src/rlx_rel_discovery.erl
@@ -86,6 +86,8 @@ resolve_rel_metadata(State, LibDirs, AppMeta) ->
end.
-spec format_detail(ErrorDetail::term()) -> iolist().
+format_detail({_Module, {could_not_find, {ReleaseName, {Version, _}}}}) ->
+ io_lib:format("could not find app ~p ~p", [ReleaseName, Version]);
format_detail({accessing, File, eaccess}) ->
io_lib:format("permission denied accessing file ~s", [File]);
format_detail({accessing, File, Type}) ->