Make the error messages more specific

In case this does ever come up.
This commit is contained in:
Robbert van der Helm
2020-12-05 18:24:36 +01:00
parent 049eb257c5
commit d8a4207748
+4 -2
View File
@@ -24,10 +24,12 @@ tresult PLUGIN_API
YaPluginFactoryHostImpl::createInstance(Steinberg::FIDString /*cid*/,
Steinberg::FIDString /*_iid*/,
void** /*obj*/) {
throw std::runtime_error("Unexpected call to 'createInstance()'");
throw std::runtime_error(
"Unexpected call to 'IPluginFactory::createInstance()'");
}
tresult PLUGIN_API
YaPluginFactoryHostImpl::setHostContext(Steinberg::FUnknown* /*context*/) {
throw std::runtime_error("Unexpected call to 'setHostContext()'");
throw std::runtime_error(
"Unexpected call to 'IPluginFactory3::setHostContext()'");
}