diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-12-14 12:38:52 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-12-15 17:44:36 +0100 |
commit | 7dfa45a62b3b942823af5ccd59897364788589c8 (patch) | |
tree | 71115e2393708cac66fdd41c67e3ade667bc5b0c /svtools | |
parent | 1af4dbd827b615a10e4686486fa9034e7adf1289 (diff) |
svtools: print some exception messages with SAL_WARN
Change-Id: I2d51b6093e13fd5ea2a93c5a4f38e4078587808d
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/misc/embedhlp.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/svtools/source/misc/embedhlp.cxx b/svtools/source/misc/embedhlp.cxx index 9d50a68fa92d..62fa448254ce 100644 --- a/svtools/source/misc/embedhlp.cxx +++ b/svtools/source/misc/embedhlp.cxx @@ -351,9 +351,9 @@ void EmbeddedObjectRef::Clear() { // there's still someone who needs the object! } - catch (const uno::Exception&) + catch (const uno::Exception& e) { - OSL_FAIL( "Error on switching of the object to loaded state and closing!\n" ); + SAL_WARN("svtools.misc", "Error on switching of the object to loaded state and closing: \"" << e.Message << "\""); } } } @@ -492,18 +492,18 @@ Size EmbeddedObjectRef::GetSize( MapMode* pTargetMapMode ) const catch(const embed::NoVisualAreaSizeException&) { } - catch(const uno::Exception&) + catch (const uno::Exception& e) { - OSL_FAIL( "Something went wrong on getting of the size of the object!" ); + SAL_WARN("svtools.misc", "Something went wrong on getting of the size of the object: \"" << e.Message << "\""); } try { aSourceMapMode = VCLUnoHelper::UnoEmbed2VCLMapUnit(mpImpl->mxObj->getMapUnit(mpImpl->nViewAspect)); } - catch(const uno::Exception&) + catch (const uno::Exception& e) { - OSL_FAIL( "Can not get the map mode!" ); + SAL_WARN("svtools.misc", "Can not get the map mode: \"" << e.Message << "\""); } } |