When there is an error the log is only a text log and not a hard error. Is it possible to make it a hard error so serverless stop the process?
Globals.ts
public static logError (message: any, debug = false): void { const canLog = (debug && process.env.SLS_DEBUG) || !debug; if (canLog) { Globals.cliLog("Error:", message); } }
Types.ts
cli: { log (str: string, entity?: string), consoleLog (str: any), };
When there is an error the log is only a text log and not a hard error. Is it possible to make it a hard error so serverless stop the process?
Globals.ts
public static logError (message: any, debug = false): void { const canLog = (debug && process.env.SLS_DEBUG) || !debug; if (canLog) { Globals.cliLog("Error:", message); } }Types.ts
cli: { log (str: string, entity?: string), consoleLog (str: any), };