summaryrefslogtreecommitdiff
path: root/sfx2/source
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2013-06-21 16:11:53 +0200
committerJan Holesovsky <kendy@suse.cz>2013-06-21 16:46:48 +0200
commitbfbdb2d4f443fc13e10ec33d112bd0c23584b658 (patch)
tree6e62498f6dfef1aad5903af1406e129e5d545b3c /sfx2/source
parent559d2575ba4a13f06b330a079035d5243fef980f (diff)
sidebar: Improve runtime error reporting (mostly missing .ui).
Change-Id: If7e0f24eab77028ddbfdb17dff82679b214efc74
Diffstat (limited to 'sfx2/source')
-rw-r--r--sfx2/source/sidebar/SidebarController.cxx10
1 files changed, 2 insertions, 8 deletions
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<ui::XUIElement> 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;
}
}