From d9424d879444d0d2db210fcc0697fbec1988fad3 Mon Sep 17 00:00:00 2001 From: Pavol Bielik Date: Sun, 25 Jan 2015 12:40:03 +0100 Subject: [PATCH] minor fix --- bin/js_features.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/js_features.js b/bin/js_features.js index c8145ee0..178492fc 100755 --- a/bin/js_features.js +++ b/bin/js_features.js @@ -83,9 +83,9 @@ function processFile(file, print_ast, features, json_formatting, skip_minified) if (ex instanceof UglifyJS.JS_Parse_Error){ sys.error("ERROR: ".red + "cannot parse file '" + file + "'"); } else if (ex instanceof UglifyJS.JS_Minified_Error){ - sys.error("WARN: ".yellow + "skipping minified file '" + file + "'"); + //sys.error("WARN: ".yellow + "skipping minified file '" + file + "'"); } else { - sys.error("ERROR: ".red + "'" + file + "'" + e); + sys.error("ERROR: ".red + "'" + file + "'" + ex); } return; @@ -109,9 +109,9 @@ function processFile(file, print_ast, features, json_formatting, skip_minified) if (removeWhitespace(output) != '{"query":[],"assign":[]}') { console.log(output); - sys.error("OK: ".green + "'" + file + "'"); + //sys.error("OK: ".green + "'" + file + "'"); } else { - sys.error("EMPTY: ".yellow + "'" + file + "'"); + sys.error("WARN: ".yellow + " no features extracted '" + file + "'"); } }