From 26ff3c6ddcd0af78c0acdbff1c83a8fb1969c9d5 Mon Sep 17 00:00:00 2001 From: Eric Date: Mon, 24 Sep 2012 13:28:34 -0700 Subject: fix bug in error printing for rcl_prv_discover --- src/rcl_prv_discover.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rcl_prv_discover.erl b/src/rcl_prv_discover.erl index ab4011c..23a3937 100644 --- a/src/rcl_prv_discover.erl +++ b/src/rcl_prv_discover.erl @@ -149,8 +149,8 @@ format_detail({invalid_app_file, File}) -> format_detail({unversioned_app, AppDir, _AppName}) -> io_lib:format("Application metadata exists but version is not available: ~s", [AppDir]); -format_detail({app_info_error, Detail}) -> - rcl_app_info:format_error(Detail). +format_detail({app_info_error, {Module, Detail}}) -> + Module:format_error(Detail). -spec discover_dir([file:name()], file:name()) -> -- cgit v1.2.3