From 0c13fbb5bd4cbb0dd8c26b6a168d22a695dd11d6 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 31 Oct 2011 09:04:33 +0100 Subject: [PATCH] Improved an OSL_FAIL. --- desktop/source/deployment/registry/dp_backend.cxx | 9 +++++++-- 1 file 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 &) {