Fixing fatal error handler - added printing custom error text

This commit is contained in:
Kononnable 2018-01-29 21:55:43 +01:00
parent 22a6af66e5
commit d689121875

View File

@ -2,6 +2,7 @@
import * as data from './../../package.json'
export function LogFatalError(errText: string, isABug: boolean = true, errObject?: any) {
let x = <any>data;
console.error(errText)
console.error(`Fatal error occured.`)
console.error(`${x.name}@${x.version} node@${process.version}`)
console.error(`Fatal error occured in typeorm-model-generator.`)