aboutsummaryrefslogtreecommitdiffstats
path: root/src/rlx_rel_discovery.erl
diff options
context:
space:
mode:
authorEric Merritt <[email protected]>2013-08-11 11:57:29 -0700
committerEric Merritt <[email protected]>2013-08-11 11:57:29 -0700
commit94fb72eff6ea7a6fe267be8ec1541219b6b854b0 (patch)
tree8129393b3d6c6c30b3fdebb7b7b0902618981f61 /src/rlx_rel_discovery.erl
parent552ce1d5e76a9064881595353cf51460917323fb (diff)
parent56d3c8191b35f1bec9fc446e62f15c6098e78f4e (diff)
downloadrelx-94fb72eff6ea7a6fe267be8ec1541219b6b854b0.tar.gz
relx-94fb72eff6ea7a6fe267be8ec1541219b6b854b0.tar.bz2
relx-94fb72eff6ea7a6fe267be8ec1541219b6b854b0.zip
Merge pull request #21 from lehoff/master
Make unrolling of nested errors work
Diffstat (limited to 'src/rlx_rel_discovery.erl')
-rw-r--r--src/rlx_rel_discovery.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rlx_rel_discovery.erl b/src/rlx_rel_discovery.erl
index 53b329f..c1e74fb 100644
--- a/src/rlx_rel_discovery.erl
+++ b/src/rlx_rel_discovery.erl
@@ -89,7 +89,10 @@ resolve_rel_metadata(State, LibDirs, AppMeta) ->
format_detail({accessing, File, eaccess}) ->
io_lib:format("permission denied accessing file ~s", [File]);
format_detail({accessing, File, Type}) ->
- io_lib:format("error (~p) accessing file ~s", [Type, File]).
+ io_lib:format("error (~p) accessing file ~s", [Type, File]);
+format_detail({Module,Reason}) ->
+ io_lib:format("~s~n", [Module:format_error(Reason)]).
+
-spec discover_dir(file:name(), [rlx_app_info:t()], directory | file) ->
{ok, rlx_release:t()}