From 37a7c318d5db20a1343598a81dba93f81e83934f Mon Sep 17 00:00:00 2001 From: hacksalot Date: Fri, 1 Jan 2016 14:58:56 -0500 Subject: [PATCH] Remove stack trace for ENOENT. --- src/core/error-handler.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/error-handler.js b/src/core/error-handler.js index 62d4af7..cecfa3d 100644 --- a/src/core/error-handler.js +++ b/src/core/error-handler.js @@ -84,7 +84,8 @@ var trimmed = idx === -1 ? msg : msg.substring( idx + 7 ); if( !ex.fluenterror || ex.fluenterror < 3 ) { // TODO: magic #s console.log( chalk.red.bold('ERROR: ' + trimmed.toString()) ); - console.log( chalk.gray(ex.stack) ); + if( ex.code !== 'ENOENT' ) // Don't emit stack for common stuff + console.log( chalk.gray(ex.stack) ); } else { console.log( trimmed.toString() );