mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-19 09:12:39 +00:00
misc: added more error handling
This commit is contained in:
@@ -48,8 +48,8 @@ export const bootstrapCheck = async ({ db }: BootstrapOpt) => {
|
||||
.then(async () => {
|
||||
console.info("SMTP successfully connected");
|
||||
})
|
||||
.catch((err) => {
|
||||
console.error(`SMTP - Failed to connect to ${appCfg.SMTP_HOST}:${appCfg.SMTP_PORT}`);
|
||||
.catch((err: Error) => {
|
||||
console.error(`SMTP - Failed to connect to ${appCfg.SMTP_HOST}:${appCfg.SMTP_PORT} - ${err.message}`);
|
||||
logger.error(err);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user