From 2749f89e25c9b1bfb76803ee01b780790cd3f96a Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 14 Jun 2011 11:19:16 +0300 Subject: [PATCH] Don't repeat exception names in what() --- source/stringcodec/except.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.43.0