Returns a function that will receive errors (or anything else that was thrown) and prints it to a console.

  • Parameters

    • console: Console

      The console to print errors to.

    Returns (error: unknown) => void

    A function that will print errors to the console.