diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2011-10-31 09:04:33 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2011-10-31 09:05:59 +0100 |
commit | 0c13fbb5bd4cbb0dd8c26b6a168d22a695dd11d6 (patch) | |
tree | 641e3e4271e6164dbf103cce989e6d61d019121b /desktop | |
parent | a18bfb0830796fbbb2f2699e9213d29045a7ef19 (diff) |
Improved an OSL_FAIL.
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/deployment/registry/dp_backend.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/desktop/source/deployment/registry/dp_backend.cxx b/desktop/source/deployment/registry/dp_backend.cxx index cbb0bf53abad..672364d9645f 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 &) { |