#include <msp/debug/demangle.h>
+#include <msp/strings/format.h>
#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