MCPcopy Create free account
hub / github.com/loopbackio/loopback-next / handleError

Function handleError

bin/script-util.js:139–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137
138 // Error handler
139 const handleError = err => {
140 console.error(err);
141 process.exit(err.exitCode || 1);
142 };
143
144 // Return handler
145 const handleReturn = val => {

Callers 1

runMainFunction · 0.85

Calls 2

errorMethod · 0.80
exitMethod · 0.80

Tested by

no test coverage detected