How to use the @boost/internal.SignalError function in @boost/internal

To help you get started, we’ve selected a few @boost/internal examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github milesj / boost / packages / core / src / Console.ts View on Github external
handleSignal = (signal: NodeJS.Signals) => {
    this.start();
    this.debug('SIGINT or SIGTERM handled');
    this.stop(new SignalError(this.tool.msg('errors:processTerminated'), signal));

    exit(2);
  };