aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2008-01-07 03:09:58 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2008-01-07 03:09:58 +0000
commit261d35f90f9680f5b3af418400957906ccfe498d (patch)
tree15fb433c1619cb489a027105e044a545f66f7172 /src
parentf33acc94ef72bb4c0aebf79fe4393d4aa308f686 (diff)
downloadpaludis-261d35f90f9680f5b3af418400957906ccfe498d.tar.gz
paludis-261d35f90f9680f5b3af418400957906ccfe498d.tar.xz
Cope better with malformed metadata keys.
Diffstat (limited to 'src')
-rw-r--r--src/clients/qualudis/qualudis.cc14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/clients/qualudis/qualudis.cc b/src/clients/qualudis/qualudis.cc
index 131f7ec..5f6f34b 100644
--- a/src/clients/qualudis/qualudis.cc
+++ b/src/clients/qualudis/qualudis.cc
@@ -248,9 +248,17 @@ namespace
printed_keys.insert(&**i);
}
- MetadataKeyPrettyPrinter pp;
- (*i)->accept(pp);
- std::cout << " " << pp.stream.str();
+ try
+ {
+ MetadataKeyPrettyPrinter pp;
+ (*i)->accept(pp);
+ std::cout << " " << pp.stream.str();
+ }
+ catch (const Exception &)
+ {
+ // assume one of the QA checks already
+ // printed a suitable error
+ }
}
}
}