Log error on uncaught exception
This commit is contained in:
parent
4818b44abf
commit
15d9225c04
|
@ -83,7 +83,8 @@ class Intval {
|
||||||
* that interupts the node process
|
* that interupts the node process
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
_undeclarePins () {
|
_undeclarePins (e) {
|
||||||
|
log.error(e)
|
||||||
if (!this._pin) {
|
if (!this._pin) {
|
||||||
log.warn('_undeclarePins', { reason : 'No pins'})
|
log.warn('_undeclarePins', { reason : 'No pins'})
|
||||||
return process.exit()
|
return process.exit()
|
||||||
|
|
|
@ -1,7 +1,3 @@
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
const intval = require('../lib/intval')
|
const intval = require('../lib/intval')
|
||||||
|
|
||||||
setTimeout(() => {
|
|
||||||
intval.frame()
|
|
||||||
}, 3000)
|
|
Loading…
Reference in New Issue