xmlsecurity/source/xmlsec/xmlsec_init.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
New commits: commit b508e4f0813b62c3e5d10a2fbacec1fb8839ece4 Author: seturaj <seturajmatr...@gmail.com> AuthorDate: Fri Jan 26 13:22:10 2024 -0500 Commit: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> CommitDate: Fri Feb 16 10:52:16 2024 +0100 tdf#42982: Improve UNO error reporting. Make exceptions more descriptive Change-Id: Idb292c508029efeb23ed969c9fad566154cb424c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162354 Tested-by: Jenkins Tested-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> diff --git a/xmlsecurity/source/xmlsec/xmlsec_init.cxx b/xmlsecurity/source/xmlsec/xmlsec_init.cxx index 410408ed2ebe..be5c8bf559d1 100644 --- a/xmlsecurity/source/xmlsec/xmlsec_init.cxx +++ b/xmlsecurity/source/xmlsec/xmlsec_init.cxx @@ -28,20 +28,20 @@ XSECXMLSEC_DLLPUBLIC void initXmlSec() { //Init xmlsec library if( xmlSecInit() < 0 ) { - throw RuntimeException() ; + throw RuntimeException("Failed to initialize XML Security (xmlsec) library") ; } //Init xmlsec crypto engine library #ifdef XMLSEC_CRYPTO_MSCRYPTO if( xmlSecMSCngInit() < 0 ) { xmlSecShutdown(); - throw RuntimeException(); + throw RuntimeException("Failed to initialize XML Security (xmlsec) for Microsoft crypto engine library"); } #endif #ifdef XMLSEC_CRYPTO_NSS if( xmlSecNssInit() < 0 ) { xmlSecShutdown(); - throw RuntimeException(); + throw RuntimeException("Failed to Initialize XML Security (xmlsec) NSS crypto engine library"); } #endif @@ -54,7 +54,7 @@ XSECXMLSEC_DLLPUBLIC void initXmlSec() xmlSecNssShutdown(); #endif xmlSecShutdown() ; - throw RuntimeException() ; + throw RuntimeException("Failed to Initialize XML Security (xmlsec) NSS crypto engine library") ; } }