mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-03-08 11:44:19 +00:00
saml: make logger print actual error message
Signed-off-by: Simeon Keske <git@n0emis.eu> Signed-off-by: Leo Maroni <git@em0lar.de>
This commit is contained in:
parent
bab0409ed0
commit
a134aa3f35
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
}()),
|
||||
|
|
Loading…
Reference in a new issue