aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ingmar Vanhassel <ingmar@exherbo.org> 2009-10-29 22:49:42 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-10-31 19:32:13 +0000
commit07c6db21b1ab646340e35071e1da97b684fab44a (patch)
tree9c89d299e94869f9f02fa6c4148ef22de65182dd
parenta5c9d13a637ccd2a5f34473a628efdb82a1e66d5 (diff)
downloadpaludis-07c6db21b1ab646340e35071e1da97b684fab44a.tar.gz
paludis-07c6db21b1ab646340e35071e1da97b684fab44a.tar.xz
Warn about FSErrors instead of silently ignoring the exception
-rw-r--r--src/clients/paludis/do_executables.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/clients/paludis/do_executables.cc b/src/clients/paludis/do_executables.cc
index 29cd099b7..1ce7e40d5 100644
--- a/src/clients/paludis/do_executables.cc
+++ b/src/clients/paludis/do_executables.cc
@@ -67,6 +67,9 @@ namespace
}
catch (const FSError & e)
{
+ Context context("When checking if '" + stringify(file) + "' exists:");
+ Log::get_instance()->message("do_executables.stat_failed", ll_warning, lc_context)
+ << "Cannot stat '" << stringify(file) << "': '" << e.message() << "' (" << e.what() << ")";
return false;
}
}