aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-08-08 14:12:22 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-08-08 14:12:22 +0000
commit66b17fd3dd7b2f41e894a219eed0a3d359e96271 (patch)
tree3f237c5b9a3405c0580c86534914e21c2d52ea71
parentdee313d6fb86aa2ea411bdc1514f3e821dda846e (diff)
downloadpaludis-66b17fd3dd7b2f41e894a219eed0a3d359e96271.tar.gz
paludis-66b17fd3dd7b2f41e894a219eed0a3d359e96271.tar.xz
More exception checking
-rw-r--r--paludis/repositories/e/qa/dependency_keys.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/paludis/repositories/e/qa/dependency_keys.cc b/paludis/repositories/e/qa/dependency_keys.cc
index de8e43b..1123ba6 100644
--- a/paludis/repositories/e/qa/dependency_keys.cc
+++ b/paludis/repositories/e/qa/dependency_keys.cc
@@ -137,7 +137,15 @@ namespace
"' using dependency_keys_check on ID '" + stringify(*id) + "':");
Checker c(entry, reporter, id, key, name);
- key.value()->accept(c);
+ try
+ {
+ key.value()->accept(c);
+ }
+ catch (const Exception & e)
+ {
+ reporter.message(entry, qaml_severe, name, "Caught exception '" + stringify(e.message())
+ + "' (" + e.what() + "') when handling key '" + key.raw_name() + "'");
+ }
return true;
}