X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fcore%2Fmaputils.cpp;h=cb2f389fe78491dd2cd4c8f49ba339bc4389351e;hp=28739f05ca86c59a3419e3d1f1f2dfe6c93539b7;hb=ac360d8b680961af4a28601aa9c7fc47ab50caee;hpb=9d202f81f7080335b59ad1a5ab1d034634052a65;ds=sidebyside diff --git a/source/core/maputils.cpp b/source/core/maputils.cpp index 28739f0..cb2f389 100644 --- a/source/core/maputils.cpp +++ b/source/core/maputils.cpp @@ -1,5 +1,6 @@ #include #include +#include #include "maputils.h" using namespace std; @@ -8,7 +9,10 @@ namespace Msp { string key_error::make_what(const type_info &type, const string &value) { - return format("%s(%s)", Debug::demangle(type.name()), value); + if(&type==&typeid(string)) + return format("\"%s\"", c_escape(value)); + else + return format("%s(%s)", Debug::demangle(type.name()), value); } } // namespace Msp