Kaydet (Commit) 88e93292 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Use SAL_WARN, too, to increase chance of actually seeing the message

Passing an, as such useful, verbose error message to the
CannotActivateFactoryException constructor is fairly pointless if that
exception ends up being unexpected and causes program
termination. Which of course is exactly the case when one would be
very interested in seeing any message associated with the exception.

Change-Id: I1cd987669e39e47d5f072690dc5013e4a42fd50a
üst 61ec8f08
......@@ -195,6 +195,7 @@ void cppuhelper::detail::loadSharedLibComponentFactory(
}
}
if (fp == 0) {
SAL_WARN("cppuhelper", "unknown factory name \"" << name << "\"");
throw css::loader::CannotActivateFactoryException(
"unknown factory name \"" + name + "\"",
css::uno::Reference<css::uno::XInterface>());
......@@ -213,6 +214,7 @@ void cppuhelper::detail::loadSharedLibComponentFactory(
return;
}
}
SAL_WARN("cppuhelper", "unknown constructor name \"" << constructor << "\"");
throw css::loader::CannotActivateFactoryException(
"unknown constructor name \"" + constructor + "\"",
css::uno::Reference<css::uno::XInterface>());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment