Skip to main content

handleError() function

Signature:
export declare function handleError(err: unknown): void;

Parameters

ParameterTypeDescription
errunknown
Returns:

void

Remarks

This function prints error message to logger and terminates current process with status code specified in err object.

Example

run().catch(handleError);