From 15d9225c04c0cb93d1bfd162a413a7bfa85d8054 Mon Sep 17 00:00:00 2001 From: mmcw-dev Date: Thu, 19 Oct 2017 21:42:52 -0400 Subject: [PATCH] Log error on uncaught exception --- lib/intval/index.js | 3 ++- tests/index.js | 6 +----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/intval/index.js b/lib/intval/index.js index 0e51e30..78d5b0b 100644 --- a/lib/intval/index.js +++ b/lib/intval/index.js @@ -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() diff --git a/tests/index.js b/tests/index.js index bae1cb4..e09e086 100644 --- a/tests/index.js +++ b/tests/index.js @@ -1,7 +1,3 @@ 'use strict' -const intval = require('../lib/intval') - -setTimeout(() => { - intval.frame() -}, 3000) \ No newline at end of file +const intval = require('../lib/intval') \ No newline at end of file