Function error

  • Formats and prints an error message.

    options:

    • exit: if passed, it will exit the process with that code.
    • logger: if passed, it will use that instead of console.error
    • debug: if true, it will also log the error itself after its message -if logger is passed, it will use logger.debug instead of console.debug

    Parameters

    Returns void