]> git.tdb.fi Git - libs/core.git/commitdiff
Don't repeat exception names in what()
authorMikko Rasa <tdb@tdb.fi>
Tue, 14 Jun 2011 08:19:16 +0000 (11:19 +0300)
committerMikko Rasa <tdb@tdb.fi>
Tue, 14 Jun 2011 08:19:16 +0000 (11:19 +0300)
source/stringcodec/except.cpp

index 045f44af107613b5134cabde1245c17720b98da3..1e1393cf00e99486b46526c94257d9b6c72bcdc3 100644 (file)
@@ -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)