Skip to content

Hard error instead of only a log when there is a error!  #60

@vinnie1234

Description

@vinnie1234

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), };

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions