diff options
author | Noel <noelgrandin@gmail.com> | 2020-11-30 14:19:29 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2021-03-31 10:28:06 +0200 |
commit | 54bfbdc2ffb8938dbef5febe50c22e4eaf4b3c03 (patch) | |
tree | 11c99039401b885c8809b7ffff8ffeebf9781cb9 /xmlsecurity | |
parent | 09deac70e486ca609a25a817cdbea754eb7c5649 (diff) |
OSL_FAIL.*exception -> TOOLS_WARN_EXCEPTION
Change-Id: I6800e23ead2767d245d5da71d2d40e0f8a6d7e1f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106859
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmlsecurity')
-rw-r--r-- | xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx b/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx index 818cd4862fff..7c6ab0ef3be1 100644 --- a/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx +++ b/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx @@ -26,6 +26,7 @@ #include <certificateviewer.hxx> #include <biginteger.hxx> #include <sax/tools/converter.hxx> +#include <tools/diagnose_ex.h> #include <com/sun/star/embed/XStorage.hpp> #include <com/sun/star/embed/ElementModes.hpp> @@ -416,7 +417,7 @@ IMPL_LINK_NOARG(DigitalSignaturesDialog, AddButtonHdl, weld::Button&, void) } catch ( uno::Exception& ) { - OSL_FAIL( "Exception while adding a signature!" ); + TOOLS_WARN_EXCEPTION( "xmlsecurity.dialogs", "adding a signature!" ); std::unique_ptr<weld::MessageDialog> xBox(Application::CreateMessageDialog(m_xDialog.get(), VclMessageType::Error, VclButtonsType::Ok, XsResId(STR_XMLSECDLG_SIGNING_FAILED))); @@ -446,7 +447,7 @@ IMPL_LINK_NOARG(DigitalSignaturesDialog, RemoveButtonHdl, weld::Button&, void) } catch ( uno::Exception& ) { - OSL_FAIL( "Exception while removing a signature!" ); + TOOLS_WARN_EXCEPTION( "xmlsecurity.dialogs", "Exception while removing a signature!" ); // Don't keep invalid entries... ImplGetSignatureInformations(/*bUseTempStream=*/true, /*bCacheLastSignature=*/true); ImplFillSignaturesBox(); |