process catch
This commit is contained in:
parent
b0ec9a654e
commit
2827fec643
1 changed files with 4 additions and 1 deletions
|
|
@ -1,7 +1,10 @@
|
||||||
/**
|
/**
|
||||||
* @prettier
|
* @prettier
|
||||||
*/
|
*/
|
||||||
|
process.on('uncaughtException', e => {
|
||||||
|
console.log('something bad happened!')
|
||||||
|
console.log(e)
|
||||||
|
})
|
||||||
/**
|
/**
|
||||||
* Module dependencies.
|
* Module dependencies.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue