• Instead of throwing normally, this function will print a given error message and exit the process with a non-zero exit code.

    Parameters

    • Optional error: string | Error

      An error message to print or an Error object from which to print the its message property.

    • exitCode: number = 1

      The exit code to exit the process with.

    Returns never

Generated using TypeDoc