summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2011-09-12 10:32:23 +0200
committerStephan Bergmann <sbergman@redhat.com>2011-09-12 22:47:46 +0200
commit63fd3f18ac597f58622a3730d0860534c77c52b5 (patch)
tree5847302d973074b34d29e3da4d3698cdbe767db9 /framework
parentf0bf752e27bfaa44cb47a1d839515d78286bae31 (diff)
Improved "unsupported URL" exception message.
Diffstat (limited to 'framework')
-rw-r--r--framework/source/loadenv/loadenv.cxx13
1 files changed, 9 insertions, 4 deletions
diff --git a/framework/source/loadenv/loadenv.cxx b/framework/source/loadenv/loadenv.cxx
index a746211da472..409ef40f2f2d 100644
--- a/framework/source/loadenv/loadenv.cxx
+++ b/framework/source/loadenv/loadenv.cxx
@@ -201,10 +201,15 @@ css::uno::Reference< css::lang::XComponent > LoadEnv::loadComponentFromURL(const
4);
case LoadEnvException::ID_UNSUPPORTED_CONTENT:
- throw css::lang::IllegalArgumentException(
- ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("URL seems to be an unsupported one.")),
- xLoader,
- 1);
+ throw css::lang::IllegalArgumentException(
+ (rtl::OUString(
+ RTL_CONSTASCII_USTRINGPARAM("Unsupported URL <")) +
+ sURL +
+ rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(">: \"")) +
+ rtl::OStringToOUString(
+ ex.m_sMessage, RTL_TEXTENCODING_UTF8) +
+ rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\""))),
+ xLoader, 1);
default: xComponent.clear();
break;