aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-03-07 07:15:58 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-03-07 07:15:58 +0000
commit09d50668dc1809839f506d8447b3aaef296b8152 (patch)
tree022ee98024872475f3dba94dae22af65218b07cd
parente1c4eb8abf354dbb77fdad73456d3628d0eefb39 (diff)
downloadpaludis-09d50668dc1809839f506d8447b3aaef296b8152.tar.gz
paludis-09d50668dc1809839f506d8447b3aaef296b8152.tar.xz
Improve exception messages
-rw-r--r--paludis/util/test_extras.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/paludis/util/test_extras.cc b/paludis/util/test_extras.cc
index 3577312..5060940 100644
--- a/paludis/util/test_extras.cc
+++ b/paludis/util/test_extras.cc
@@ -50,7 +50,8 @@ namespace
const paludis::Exception * ee;
if (0 != ((ee = dynamic_cast<const Exception *>(&e))))
return stringify(ee->what()) + " (message " + ee->message() +
- (ee->empty() ? stringify("") : ", backtrace " + ee->backtrace(" -> ")) + ")";
+ (ee->empty() ? std::string(", no backtrace") :
+ ", backtrace " + ee->backtrace(" -> ")) + ")";
else
return e.what();
}