From bfbdb2d4f443fc13e10ec33d112bd0c23584b658 Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Fri, 21 Jun 2013 16:11:53 +0200 Subject: sidebar: Improve runtime error reporting (mostly missing .ui). Change-Id: If7e0f24eab77028ddbfdb17dff82679b214efc74 --- sfx2/source/sidebar/SidebarController.cxx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'sfx2/source') diff --git a/sfx2/source/sidebar/SidebarController.cxx b/sfx2/source/sidebar/SidebarController.cxx index 54314af50922..80023576a831 100644 --- a/sfx2/source/sidebar/SidebarController.cxx +++ b/sfx2/source/sidebar/SidebarController.cxx @@ -718,15 +718,9 @@ Reference SidebarController::CreateUIElement ( return xUIElement; } - catch(Exception& rException) + catch(const Exception& rException) { - OSL_TRACE("caught exception: %s", - OUStringToOString(rException.Message, RTL_TEXTENCODING_ASCII_US).getStr()); - // For some reason we can not create the actual panel. - // Probably because its factory was not properly registered. - // TODO: provide feedback to developer to better pinpoint the - // source of the error. - + SAL_WARN("sfx2.sidebar", "Cannot create panel: " << rException.Message); return NULL; } } -- cgit