summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSimeon Keske2020-05-18 13:29:05 +0200
committerLeo Maroni2020-07-11 21:21:01 +0200
commita134aa3f35d083bb36340562f61c8d19ea9a9027 (patch)
treea0d30391e6e4e430b4c43aa3a299ea01ea5dfbb3 /lib
parentbab0409ed09496ee1b997c40f62e6d8b0ad83013 (diff)
saml: make logger print actual error message
Signed-off-by: Simeon Keske <git@n0emis.eu> Signed-off-by: Leo Maroni <git@em0lar.de>
Diffstat (limited to '')
-rw-r--r--lib/web/auth/saml/index.js4
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)
}
}()),