aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ingmar Vanhassel <ingmar@exherbo.org> 2009-10-29 22:49:42 +0100
committerAvatar Ingmar Vanhassel <ingmar@exherbo.org> 2009-10-29 22:49:42 +0100
commit18eb76bad51823b14bf70d69fe679995ff69b10b (patch)
tree6277079fe7476753b002f7d325a2312b729cbe3f
parentecb6f0935225d9c80e56ed71fbdb00180b7e79d3 (diff)
downloadpaludis-18eb76bad51823b14bf70d69fe679995ff69b10b.tar.gz
paludis-18eb76bad51823b14bf70d69fe679995ff69b10b.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 29cd099..1ce7e40 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;
}
}