From: Mikko Rasa Date: Tue, 14 Jun 2011 08:19:16 +0000 (+0300) Subject: Don't repeat exception names in what() X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=commitdiff_plain;h=2749f89e25c9b1bfb76803ee01b780790cd3f96a Don't repeat exception names in what() --- diff --git a/source/stringcodec/except.cpp b/source/stringcodec/except.cpp index 045f44a..1e1393c 100644 --- a/source/stringcodec/except.cpp +++ b/source/stringcodec/except.cpp @@ -7,12 +7,12 @@ namespace Msp { namespace StringCodec { invalid_character::invalid_character(unichar ch, const string &detail): - codec_error(format("invalid character: U+%04X (%s)", ch, detail)) + codec_error(format("U+%04X (%s)", ch, detail)) { } invalid_sequence::invalid_sequence(const string::const_iterator &begin, const string::const_iterator &end, const string &detail): - codec_error(format("invalid sequence: %s (%s)", format_sequence(begin, end), detail)) + codec_error(format("%s (%s)", format_sequence(begin, end), detail)) { } string invalid_sequence::format_sequence(const string::const_iterator &begin, const string::const_iterator &end)