]> git.tdb.fi Git - builder.git/blobdiff - source/component.cpp
It's okay to throw exceptions from Loader functions
[builder.git] / source / component.cpp
index 8a57b6410ee47024cec0b88704f9998707130a4b..6bfce1fb6b8682f19c775552812b26af9da1b451 100644 (file)
@@ -302,5 +302,5 @@ void Component::Loader::use(const string &n)
                        obj.uses.push_back(&*i);
                        return;
                }
-       error(format("Unknown library component '%s'", n));
+       throw invalid_argument("Component::Loader::use");
 }