From 88e9329265a60ff7c88772507cb099ade61cf1b9 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 14 Jan 2014 18:55:20 +0200 Subject: 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 --- cppuhelper/source/shlib.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cppuhelper/source/shlib.cxx') 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()); @@ -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()); -- cgit