summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-12-14 12:38:52 +0100
committerMichael Stahl <mstahl@redhat.com>2015-12-15 19:55:55 +0100
commit88cd3f3f33233d93f3f1b13c184282882210c6b6 (patch)
tree8bee44fba7e6862e0dc2b9cdb3217dd2ee4277cd /svtools
parente2bb242eb20f8bd24e3f1033c09dd1d379877084 (diff)
svtools: print some exception messages with SAL_WARN
Change-Id: I2d51b6093e13fd5ea2a93c5a4f38e4078587808d (cherry picked from commit 7dfa45a62b3b942823af5ccd59897364788589c8)
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/misc/embedhlp.cxx12
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 << "\"");
}
}