From a134aa3f35d083bb36340562f61c8d19ea9a9027 Mon Sep 17 00:00:00 2001 From: Simeon Keske Date: Mon, 18 May 2020 13:29:05 +0200 Subject: saml: make logger print actual error message Signed-off-by: Simeon Keske Signed-off-by: Leo Maroni --- lib/web/auth/saml/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/web') 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) } }()), -- cgit v1.2.3