X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fcore%2Fmaputils.cpp;h=28739f05ca86c59a3419e3d1f1f2dfe6c93539b7;hp=4fcc8e2176769832b02f9d301810e1fd078fd9e0;hb=1e0abc3a49ade6a4fa1b38f744df070c40a87724;hpb=468ec9f6554c89b52e10a280411c9b9d99ef451b diff --git a/source/core/maputils.cpp b/source/core/maputils.cpp index 4fcc8e2..28739f0 100644 --- a/source/core/maputils.cpp +++ b/source/core/maputils.cpp @@ -1,12 +1,14 @@ #include +#include #include "maputils.h" using namespace std; namespace Msp { -key_error::key_error(const type_info &t): - runtime_error(Debug::demangle(t.name())) -{ } +string key_error::make_what(const type_info &type, const string &value) +{ + return format("%s(%s)", Debug::demangle(type.name()), value); +} } // namespace Msp