handleError() function
export declare function handleError(err: unknown): void;
Parameters
Parameter | Type | Description |
---|---|---|
err | unknown |
void
Remarks
This function prints error message to logger and terminates current process with status code specified in err
object.
Example
run().catch(handleError);