Documentation
    Preparing search index...

    Function redirectErrorsToStream

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

      Parameters

      • stream: WriteStream

        The stream to print errors to.

      Returns (error: unknown) => void

      A function that will print errors to the stream.