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 /avmedia/source/framework | |
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 'avmedia/source/framework')
-rw-r--r-- | avmedia/source/framework/mediaitem.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/avmedia/source/framework/mediaitem.cxx b/avmedia/source/framework/mediaitem.cxx index 0fca80f6d5b4..9a1a33ea5473 100644 --- a/avmedia/source/framework/mediaitem.cxx +++ b/avmedia/source/framework/mediaitem.cxx @@ -39,6 +39,7 @@ #include <comphelper/storagehelper.hxx> #include <mediamisc.hxx> #include <osl/file.hxx> +#include <tools/diagnose_ex.h> using namespace ::com::sun::star; @@ -506,9 +507,10 @@ bool CreateMediaTempFile(uno::Reference<io::XInputStream> const& xInStream, comphelper::getProcessComponentContext()); tempContent.writeStream(xInStream, true); // copy stream to file } - catch (uno::Exception const& e) + catch (uno::Exception const&) { - SAL_WARN("avmedia", "exception: '" << e << "'"); + css::uno::Any ex( cppu::getCaughtException() ); + SAL_WARN("avmedia", "exception: " << exceptionToString(ex)); return false; } o_rTempFileURL = tempFileURL; |