Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
runMain
Function · 0.85
Calls
2
error
Method · 0.80
exit
Method · 0.80
Tested by
no test coverage detected