Add Error Catch description for node modules not found
This commit is contained in:
1 parent
c754382b89
commit
367cb980be
1 file changed
+5
@@ -16,6 +16,11 @@ process.on('uncaughtException', function (err) {
|
||||
})
|
||||
|
||||
process.on('unhandledRejection', (reason, p) => {
|
||||
if (reason.code == 'MODULE_NOT_FOUND') {
|
||||
console.log("[ERROR] Node Modules not found. Running the node setup command and then restart")
|
||||
console.log('[ERROR] Client -> client-> reason = ' + JSON.stringify(reason))
|
||||
process.exit(1)
|
||||
}
|
||||
console.log('[ERROR] Client -> client-> unhandledRejection -> reason = ' + JSON.stringify(reason))
|
||||
console.log('[ERROR] Client -> client-> unhandledRejection -> p = ' + JSON.stringify(p))
|
||||
process.exit(1)
|
||||
|
||||
Reference in new issue
Block a user