minor fix
This commit is contained in:
parent
ff5757d187
commit
d9424d8794
|
|
@ -83,9 +83,9 @@ function processFile(file, print_ast, features, json_formatting, skip_minified)
|
||||||
if (ex instanceof UglifyJS.JS_Parse_Error){
|
if (ex instanceof UglifyJS.JS_Parse_Error){
|
||||||
sys.error("ERROR: ".red + "cannot parse file '" + file + "'");
|
sys.error("ERROR: ".red + "cannot parse file '" + file + "'");
|
||||||
} else if (ex instanceof UglifyJS.JS_Minified_Error){
|
} 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 {
|
} else {
|
||||||
sys.error("ERROR: ".red + "'" + file + "'" + e);
|
sys.error("ERROR: ".red + "'" + file + "'" + ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
@ -109,9 +109,9 @@ function processFile(file, print_ast, features, json_formatting, skip_minified)
|
||||||
|
|
||||||
if (removeWhitespace(output) != '{"query":[],"assign":[]}') {
|
if (removeWhitespace(output) != '{"query":[],"assign":[]}') {
|
||||||
console.log(output);
|
console.log(output);
|
||||||
sys.error("OK: ".green + "'" + file + "'");
|
//sys.error("OK: ".green + "'" + file + "'");
|
||||||
} else {
|
} else {
|
||||||
sys.error("EMPTY: ".yellow + "'" + file + "'");
|
sys.error("WARN: ".yellow + " no features extracted '" + file + "'");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user