summaryrefslogtreecommitdiffstats
path: root/src/factory.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/factory.h')
-rw-r--r--src/factory.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/factory.h b/src/factory.h
index a1df55277..d7f4cb2b9 100644
--- a/src/factory.h
+++ b/src/factory.h
@@ -63,7 +63,9 @@ public:
typename std::map<std::string const, CreateFunction *>::const_iterator it = this->_object_map.find(id);
if (it == this->_object_map.end()) {
- throw FactoryExceptions::TypeNotRegistered(id);
+ //throw FactoryExceptions::TypeNotRegistered(id);
+ g_warning("unknown type: %s", id.c_str());
+ return NULL;
}
return it->second();