Better error message.
This commit is contained in:
parent
74e8e47926
commit
5ec4ea4aa2
@ -62,7 +62,7 @@ shared_ptr <textPart> textPartFactory::create(const mediaType& type)
|
||||
return ((*it).second)();
|
||||
}
|
||||
|
||||
throw exceptions::no_factory_available();
|
||||
throw exceptions::no_factory_available("No 'textPart' class registered for media type '" + type.generate() + "'.");
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user