From a4ee7127ee74e10368bf21ae7cf96f051dafae3a Mon Sep 17 00:00:00 2001 From: hacksalot Date: Sun, 10 Jan 2016 13:28:20 -0500 Subject: [PATCH] Fix stack reporting glitch. --- src/core/error-handler.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/error-handler.js b/src/core/error-handler.js index 5596a0f..1b732ad 100644 --- a/src/core/error-handler.js +++ b/src/core/error-handler.js @@ -16,7 +16,8 @@ Error-handling routines for HackMyResume. , FCMD = require('../hackmyapi') , PATH = require('path') , WRAP = require('word-wrap') - , chalk = require('chalk'); + , chalk = require('chalk') + , SyntaxErrorEx = require('../utils/syntax-error-ex'); @@ -67,7 +68,7 @@ Error-handling routines for HackMyResume. // Selectively show the stack trace if( (ex.stack || (ex.inner && ex.inner.stack)) && ((showStack && ex.code !== 'ENOENT' ) || (this.debug) )) - log( chalk.red( ex.stack || ex.stack.inner ) ); + log( chalk.red( ex.stack || ex.inner.stack ) ); // Let the error code be the process's return code. ( shouldExit || ex.shouldExit ) && process.exit( exitCode );