diff options
author | sb <sb@openoffice.org> | 2009-05-18 14:59:23 +0200 |
---|---|---|
committer | sb <sb@openoffice.org> | 2009-05-18 14:59:23 +0200 |
commit | f87c88b7c98e3b937f78f54cdd77cc69ebd8315b (patch) | |
tree | 6461bb06cc2227d7c01bd2ff213af4bdb10e65e1 /ucbhelper | |
parent | Create DEV300_m48 milestone tag from trunk@271829 (diff) | |
download | core-f87c88b7c98e3b937f78f54cdd77cc69ebd8315b.tar.gz core-f87c88b7c98e3b937f78f54cdd77cc69ebd8315b.zip |
#i101955# improved error reporting (improving previous -c acee60ce43e6)
Diffstat (limited to 'ucbhelper')
-rw-r--r-- | ucbhelper/source/client/content.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ucbhelper/source/client/content.cxx b/ucbhelper/source/client/content.cxx index c82a0bc19b77..4a620b4b4074 100644 --- a/ucbhelper/source/client/content.cxx +++ b/ucbhelper/source/client/content.cxx @@ -341,12 +341,14 @@ static Reference< XContent > getContent( if ( xProvider.is() ) { Reference< XContent > xContent; + rtl::OUString msg; try { xContent = xProvider->queryContent( xId ); } - catch ( IllegalIdentifierException const & ) + catch ( IllegalIdentifierException const & e ) { + msg = e.Message; // handled below. } @@ -359,7 +361,7 @@ static Reference< XContent > getContent( throw ContentCreationException( rtl::OUString::createFromAscii( - "Unable to create Content!" ), + "Unable to create Content! " ) + msg, Reference< XInterface >(), ContentCreationError_CONTENT_CREATION_FAILED ); } |