diff options
author | Simeon Keske | 2020-05-18 13:29:05 +0200 |
---|---|---|
committer | Leo Maroni | 2020-07-11 21:21:01 +0200 |
commit | a134aa3f35d083bb36340562f61c8d19ea9a9027 (patch) | |
tree | a0d30391e6e4e430b4c43aa3a299ea01ea5dfbb3 | |
parent | bab0409ed09496ee1b997c40f62e6d8b0ad83013 (diff) |
saml: make logger print actual error message
Signed-off-by: Simeon Keske <git@n0emis.eu>
Signed-off-by: Leo Maroni <git@em0lar.de>
-rw-r--r-- | lib/web/auth/saml/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/web/auth/saml/index.js b/lib/web/auth/saml/index.js index c984751c..14f3966d 100644 --- a/lib/web/auth/saml/index.js +++ b/lib/web/auth/saml/index.js @@ -20,14 +20,14 @@ passport.use(new SamlStrategy({ try { return fs.readFileSync(config.saml.clientCert, 'utf-8') } catch (e) { - logger.error('saml client certificate not found at: ' + config.saml.clientCert) + logger.error(`SAML client certificate: ${e.message}`) } }()), cert: (function () { try { return fs.readFileSync(config.saml.idpCert, 'utf-8') } catch (e) { - logger.error('saml idp certificate not found at: ' + config.saml.idpCert) + logger.error(`SAML idp certificate: ${e.message}`) process.exit(1) } }()), |