Skip to content

UnhandledErrorBehavior

type UnhandledErrorBehavior = "log" | "throw" | "ignore";

Behavior when the Events.ERROR event is emitted but nobody listens to it.

  • log (default): the error is logged to the console instead of crashing the process
  • throw: the error is re-thrown (Node.js default behavior)
  • ignore: the error is silently discarded