Log error on uncaught exception

This commit is contained in:
mmcw-dev 2017-10-19 21:42:52 -04:00
parent 4818b44abf
commit 15d9225c04
2 changed files with 3 additions and 6 deletions

View File

@ -83,7 +83,8 @@ class Intval {
* that interupts the node process
*
*/
_undeclarePins () {
_undeclarePins (e) {
log.error(e)
if (!this._pin) {
log.warn('_undeclarePins', { reason : 'No pins'})
return process.exit()

View File

@ -1,7 +1,3 @@
'use strict'
const intval = require('../lib/intval')
setTimeout(() => {
intval.frame()
}, 3000)
const intval = require('../lib/intval')