diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2017-08-13 14:01:02 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-13 20:31:37 +0200 |
commit | 92a9411040410a16532177d5dde8ca8968bcc12b (patch) | |
tree | 88ec6756e4004d41ac772230797cf40dbb9b1a77 /avmedia | |
parent | 3f72879a8e54e18f3ad587f7284b84db592c8d1a (diff) |
log details of exception when we catch std::exception
Change-Id: Ibfaba3473b11e24381d5a71a722c021ecde3488b
Reviewed-on: https://gerrit.libreoffice.org/41112
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'avmedia')
-rw-r--r-- | avmedia/source/framework/modeltools.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/avmedia/source/framework/modeltools.cxx b/avmedia/source/framework/modeltools.cxx index 03d4647849de..729d19298446 100644 --- a/avmedia/source/framework/modeltools.cxx +++ b/avmedia/source/framework/modeltools.cxx @@ -26,6 +26,7 @@ #include <boost/property_tree/ptree.hpp> #include <boost/property_tree/json_parser.hpp> #include <boost/optional.hpp> +#include <boost/exception/diagnostic_information.hpp> #include <config_features.h> @@ -206,9 +207,9 @@ static void lcl_EmbedExternals(const OUString& rSourceURL, const uno::Reference< // Write out modified json json_parser::write_json( sUrl, aTree ); } - catch ( boost::exception const& ) + catch ( boost::exception const& e ) { - SAL_WARN("avmedia.opengl", "Exception while parsing *.json file"); + SAL_WARN("avmedia.opengl", "Exception while parsing *.json file " << boost::diagnostic_information(e)); return; } |