X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fmaputils.cpp;h=28739f05ca86c59a3419e3d1f1f2dfe6c93539b7;hb=7b81490ae4ed6c7c8566f889d146677827f5d4a5;hp=4fcc8e2176769832b02f9d301810e1fd078fd9e0;hpb=d16185720fa344263367dbd50c61bfc8183d99a4;p=libs%2Fcore.git 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