better error message for file io issues

This commit is contained in:
carm
2012-11-16 23:09:34 -05:00
parent 3e3624ef2b
commit e4541d0a12
3 changed files with 16 additions and 16 deletions

View File

@ -96,9 +96,9 @@ std::auto_ptr<Preset> PresetFactoryManager::allocate(const std::string & url, co
PresetFactory & PresetFactoryManager::factory(const std::string & extension) {
if (!_factoryMap.count(extension)) {
if (!extensionHandled(extension)) {
std::ostringstream os;
os << "No factory associated with \"" << extension << "\"." << std::endl;
os << "No preset factory associated with \"" << extension << "\"." << std::endl;
throw PresetFactoryException(os.str());
}
return *_factoryMap[extension];