From df773dc769f6a0d676673ac9b5fc0e8132e435e6 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 26 Dec 2019 09:22:30 +0200 Subject: 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 --- fpicker/source/office/iodlg.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'fpicker/source') 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 #include +#include #include #include #include @@ -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" ); } } -- cgit