summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-10-09 19:12:14 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-10-09 21:02:11 +0200
commit669655d146ea87db2df28125b02bcfdfe4ef61d7 (patch)
tree2b8d08ca9c57c070d5c7ee7bc9e6b2d53a9c5085 /xmloff
parent9c489f7fe0fd81fd2d293c1cb7c7d4874f434568 (diff)
Improve error reporting
Change-Id: I43df9a5458cb87145a3492e1a0c97ceb8c8a3b90
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/core/xmlexp.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/xmloff/source/core/xmlexp.cxx b/xmloff/source/core/xmlexp.cxx
index 5e9193746e4b..1c7643342586 100644
--- a/xmloff/source/core/xmlexp.cxx
+++ b/xmloff/source/core/xmlexp.cxx
@@ -68,6 +68,7 @@
#include "xmloff/XMLFilterServiceNames.h"
#include "xmloff/XMLEmbeddedObjectExportFilter.hxx"
#include "XMLBasicExportFilter.hxx"
+#include "cppuhelper/exc_hlp.hxx"
#include <cppuhelper/implbase1.hxx>
#include <comphelper/extract.hxx>
#include <comphelper/servicehelper.hxx>
@@ -842,9 +843,10 @@ sal_Bool SAL_CALL SvXMLExport::filter( const uno::Sequence< beans::PropertyValue
{
// We must catch exceptions, because according to the
// API definition export must not throw one!
- Sequence<OUString> aSeq(0);
+ css::uno::Any ex(cppu::getCaughtException());
SetError( XMLERROR_FLAG_ERROR | XMLERROR_FLAG_SEVERE | XMLERROR_API,
- aSeq, e.Message, NULL );
+ Sequence<OUString>(),
+ ex.getValueTypeName() + ": \"" + e.Message + "\"", NULL );
}
// return true only if no error occurred