diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-03-01 14:42:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-03-07 07:12:39 +0100 |
commit | 8b5e23eac31cafbd442a3acab5fbcf98bfd0af11 (patch) | |
tree | d41feeea533127280e0503d0dc2dd55a4ab83ce8 /sax | |
parent | 4f810905fa74128871f2fe924a3d28a79f4e4261 (diff) |
log nice exception messages whereever possible
Change-Id: Idd125c18bee1a39b9ea8cc4f8c55cddfd37c33e1
Reviewed-on: https://gerrit.libreoffice.org/68579
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sax')
-rw-r--r-- | sax/Library_expwrap.mk | 1 | ||||
-rw-r--r-- | sax/source/fastparser/fastparser.cxx | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/sax/Library_expwrap.mk b/sax/Library_expwrap.mk index 076814aab0e8..17a91e4d5904 100644 --- a/sax/Library_expwrap.mk +++ b/sax/Library_expwrap.mk @@ -36,6 +36,7 @@ $(eval $(call gb_Library_use_libraries,expwrap,\ sal \ salhelper \ sax \ + tl \ )) $(eval $(call gb_Library_add_exception_objects,expwrap,\ diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx index 1e8b578e325f..6d888f2d1115 100644 --- a/sax/source/fastparser/fastparser.cxx +++ b/sax/source/fastparser/fastparser.cxx @@ -39,6 +39,7 @@ #include <rtl/ustrbuf.hxx> #include <sal/log.hxx> #include <salhelper/thread.hxx> +#include <tools/diagnose_ex.h> #include <queue> #include <memory> @@ -610,8 +611,7 @@ void Entity::saveException( const Any & e ) // fdo#81214 - allow the parser to run on after an exception, // unexpectedly some 'startElements' produce an UNO_QUERY_THROW // for XComponent; and yet expect to continue parsing. - SAL_WARN("sax", "Unexpected exception from XML parser " - << e.get<Exception>()); + SAL_WARN("sax", "Unexpected exception from XML parser " << exceptionToString(e)); osl::MutexGuard g(maSavedExceptionMutex); if (maSavedException.hasValue()) { |