[Libreoffice-commits] .: desktop/source
Stephan Bergmann
sbergmann at kemper.freedesktop.org
Mon Oct 31 01:07:28 PDT 2011
desktop/source/deployment/registry/dp_backend.cxx | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
New commits:
commit 0c13fbb5bd4cbb0dd8c26b6a168d22a695dd11d6
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Mon Oct 31 09:04:33 2011 +0100
Improved an OSL_FAIL.
diff --git a/desktop/source/deployment/registry/dp_backend.cxx b/desktop/source/deployment/registry/dp_backend.cxx
index cbb0bf5..672364d 100644
--- a/desktop/source/deployment/registry/dp_backend.cxx
+++ b/desktop/source/deployment/registry/dp_backend.cxx
@@ -677,8 +677,13 @@ void Package::processPackage_impl(
xCmdEnv );
}
}
- catch (RuntimeException &) {
- OSL_FAIL( "### unexpected RuntimeException!" );
+ catch (RuntimeException &e) {
+ (void) e; // avoid warnings
+ OSL_FAIL(
+ OSL_FORMAT(
+ "unexpected RuntimeException \"%s\"",
+ (rtl::OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8).
+ getStr())));
throw;
}
catch (CommandFailedException &) {
More information about the Libreoffice-commits
mailing list