aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2008-01-24 15:23:11 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2008-01-24 15:23:11 +0000
commitf5b2ebb8c8e5a52e06a1a24d30ee57b8455ba776 (patch)
treec9b5019fdcafda29234efb97ee83822d746791a5
parent1390c5a0f545933a6e2591aa769a8241d302373c (diff)
downloadpaludis-f5b2ebb8c8e5a52e06a1a24d30ee57b8455ba776.tar.gz
paludis-f5b2ebb8c8e5a52e06a1a24d30ee57b8455ba776.tar.xz
Fix error handling.
-rw-r--r--paludis/repositories/e/qa/fetches_key.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/paludis/repositories/e/qa/fetches_key.cc b/paludis/repositories/e/qa/fetches_key.cc
index 59659a8..f7c3dc9 100644
--- a/paludis/repositories/e/qa/fetches_key.cc
+++ b/paludis/repositories/e/qa/fetches_key.cc
@@ -194,22 +194,22 @@ paludis::erepository::fetches_key_check(
Log::get_instance()->message(ll_debug, lc_context) << "fetches_key_check '"
<< entry << "', " << *id << "', " << name << "'";
- try
+ if (id->fetches_key())
{
- if (id->fetches_key())
+ try
{
Checker c(reporter, LabelToFetchRestrict(*id->fetches_key()->initial_label()).value,
id, id->fetches_key(), entry, name);
id->fetches_key()->value()->accept(c);
}
- }
- catch (const Exception & e)
- {
- reporter.message(QAMessage(entry, qaml_severe, name,
- "Caught exception '" + stringify(e.message()) + "' ("
- + stringify(e.what()) + ") when handling key '" + id->fetches_key()->raw_name() + "'")
- .with_associated_id(id)
- .with_associated_key(id, id->fetches_key()));
+ catch (const Exception & e)
+ {
+ reporter.message(QAMessage(entry, qaml_severe, name,
+ "Caught exception '" + stringify(e.message()) + "' ("
+ + stringify(e.what()) + ") when handling key '" + id->fetches_key()->raw_name() + "'")
+ .with_associated_id(id)
+ .with_associated_key(id, id->fetches_key()));
+ }
}
return true;