MCPcopy
hub / github.com/faressoft/terminalizer / errorHandler

Function errorHandler

app.js:96–104  ·  view source on GitHub ↗

* Print an error * * @param {String|Error} error

(error)

Source from the content-addressed store, hash-verified

94 * @param {String|Error} error
95 */
96function errorHandler(error) {
97
98 error = error.toString();
99
100 console.error('Error: \n ' + error + '\n');
101 console.error('Hint:\n Use the ' + di.chalk.green('--help') + ' option to get help about the usage');
102 process.exit(1);
103
104}

Callers 1

app.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected