aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric <[email protected]>2012-09-19 18:18:12 -0700
committerEric <[email protected]>2012-09-19 18:18:12 -0700
commit906bf94c4adec72aa47002e0e6d3551a63aede9c (patch)
tree79675b7a2b0b83c60c9b3128b559223b1d70916d /src
parente72f965e861127cd97cdef82905370540a0d4a80 (diff)
downloadrelx-906bf94c4adec72aa47002e0e6d3551a63aede9c.tar.gz
relx-906bf94c4adec72aa47002e0e6d3551a63aede9c.tar.bz2
relx-906bf94c4adec72aa47002e0e6d3551a63aede9c.zip
fix format detail bug in prv discover
Diffstat (limited to 'src')
-rw-r--r--src/rcl_prv_discover.erl16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/rcl_prv_discover.erl b/src/rcl_prv_discover.erl
index dcee041..a7d7e1e 100644
--- a/src/rcl_prv_discover.erl
+++ b/src/rcl_prv_discover.erl
@@ -129,23 +129,23 @@ add_system_lib_dir(State, LibDirs) ->
end.
-spec format_detail(ErrorDetail::term()) -> iolist().
-format_detail({error, {accessing, File, eaccess}}) ->
+format_detail({accessing, File, eaccess}) ->
io_lib:format("permission denied accessing file ~s", [File]);
-format_detail({error, {accessing, File, Type}}) ->
+format_detail({accessing, File, Type}) ->
io_lib:format("error (~p) accessing file ~s", [Type, File]);
-format_detail({error, {no_beam_files, EbinDir}}) ->
+format_detail({no_beam_files, EbinDir}) ->
io_lib:format("no beam files found in directory ~s", [EbinDir]);
-format_detail({error, {not_a_directory, EbinDir}}) ->
+format_detail({not_a_directory, EbinDir}) ->
io_lib:format("~s is not a directory when it should be a directory", [EbinDir]);
-format_detail({error, {unable_to_load_app, AppDir, _}}) ->
+format_detail({unable_to_load_app, AppDir, _}) ->
io_lib:format("Unable to load the application metadata from ~s", [AppDir]);
-format_detail({error, {invalid_app_file, File}}) ->
+format_detail({invalid_app_file, File}) ->
io_lib:format("Application metadata file exists but is malformed: ~s",
[File]);
-format_detail({error, {unversioned_app, AppDir, _AppName}}) ->
+format_detail({unversioned_app, AppDir, _AppName}) ->
io_lib:format("Application metadata exists but version is not available: ~s",
[AppDir]);
-format_detail({error, {app_info_error, Detail}}) ->
+format_detail({app_info_error, Detail}) ->
rcl_app_info:format_error(Detail).
-spec discover_dir(file:name()) ->