diff options
author | seturaj <seturajmatroja@gmail.com> | 2024-01-26 13:22:10 -0500 |
---|---|---|
committer | Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> | 2024-02-16 10:52:16 +0100 |
commit | b508e4f0813b62c3e5d10a2fbacec1fb8839ece4 (patch) | |
tree | fb4f25c706777963a5a81a87fd708f2864264062 /xmlsecurity | |
parent | c67f138ed80e1e50638901a6b6e16946b4bcd92d (diff) |
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.lauhakangas@libreoffice.org>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Diffstat (limited to 'xmlsecurity')
-rw-r--r-- | xmlsecurity/source/xmlsec/xmlsec_init.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
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") ; } } |