Better error message.

This commit is contained in:
Vincent Richard 2014-01-19 16:52:49 +01:00
parent 74e8e47926
commit 5ec4ea4aa2

View File

@ -62,7 +62,7 @@ shared_ptr <textPart> textPartFactory::create(const mediaType& type)
return ((*it).second)(); return ((*it).second)();
} }
throw exceptions::no_factory_available(); throw exceptions::no_factory_available("No 'textPart' class registered for media type '" + type.generate() + "'.");
} }