Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private handleError(err: any): void {
if (err.code === 'ECONNREFUSED') {
logger.warn('Database not running. Run docker-compose up -d or docker-compose start to start the database.')
} else {
logger.warn(err.message)
}
process.exit(0)
}
}
private handleError(err: any): void {
if (err.code === 'ECONNREFUSED') {
logger.warn('Database not running. Run docker-compose up -d or docker-compose start to start the database.')
} else {
logger.warn(err.message)
}
process.exit(0)
}
}