summaryrefslogtreecommitdiff
path: root/cppuhelper
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-01-14 18:55:20 +0200
committerTor Lillqvist <tml@collabora.com>2014-01-14 19:02:18 +0200
commit88e9329265a60ff7c88772507cb099ade61cf1b9 (patch)
treea72c9a945c71fdf90874a8b9b28a711afd9ad91c /cppuhelper
parent61ec8f086ba314b86c80a02b16072e88774abf6c (diff)
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
Diffstat (limited to 'cppuhelper')
-rw-r--r--cppuhelper/source/shlib.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/cppuhelper/source/shlib.cxx b/cppuhelper/source/shlib.cxx
index 1d41440138fc..2d1d1df2f6ba 100644
--- a/cppuhelper/source/shlib.cxx
+++ b/cppuhelper/source/shlib.cxx
@@ -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>());