Improved an OSL_FAIL.

This commit is contained in:
Stephan Bergmann 2011-10-31 09:04:33 +01:00
parent a18bfb0830
commit 0c13fbb5bd

View file

@ -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 &) {