diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2019-12-26 09:22:30 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-12-26 19:08:42 +0100 |
commit | df773dc769f6a0d676673ac9b5fc0e8132e435e6 (patch) | |
tree | fe744b9d76e5f26282409fbe3b117e24659de7c0 /fpicker | |
parent | 32b9d07baa0cf6907f14ccb9aa068b51d95eefaa (diff) |
use more TOOLS_WARN_EXCEPTION
so we get more useful log messages when stuff goes wrong
Change-Id: Ia55db7ab1a4d79b0f281673fbbb06c61745fa89e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/85829
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'fpicker')
-rw-r--r-- | fpicker/source/office/iodlg.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fpicker/source/office/iodlg.cxx b/fpicker/source/office/iodlg.cxx index 7a28b76562b2..1915a1d66aa6 100644 --- a/fpicker/source/office/iodlg.cxx +++ b/fpicker/source/office/iodlg.cxx @@ -27,6 +27,7 @@ #include "PlacesListBox.hxx" #include <fpsofficeResMgr.hxx> #include <tools/debug.hxx> +#include <tools/diagnose_ex.h> #include <tools/stream.hxx> #include <tools/urlobj.hxx> #include <vcl/graph.hxx> @@ -245,7 +246,7 @@ namespace } catch( const Exception& ) { - OSL_FAIL( "lcl_getHomeDirectory: caught an exception!" ); + TOOLS_WARN_EXCEPTION( "fpicker", "lcl_getHomeDirectory" ); } return !_rHomeDir.isEmpty(); } @@ -1418,7 +1419,7 @@ void SvtFileDialog::displayIOException( const OUString& _rURL, IOErrorCode _eCod } catch( const Exception& ) { - OSL_FAIL( "iodlg::displayIOException: caught an exception!" ); + TOOLS_WARN_EXCEPTION( "fpicker", "iodlg::displayIOException" ); } } |