@appsemble/node-utils
Version:
NodeJS utilities used by Appsemble internally.
12 lines (11 loc) • 355 B
TypeScript
import { type Argv } from 'yargs';
/**
* Handle a fatal error.
*
* HTTP errors are formatted nicely. For other errors, the stack trace is logged.
*
* @param message Unused.
* @param error The error that was thrown.
* @param yargs The active yargs instance.
*/
export declare function handleError(message: string, error: Error, yargs: Argv): void;