fix diagnostic text (#3838)

This commit is contained in:
Alex Lam S.L 2020-05-01 11:55:06 +01:00 committed by GitHub
parent 0794aaa2c2
commit dcb74f558e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,7 +41,7 @@ if (typeof phantom == "undefined") {
var uglifyjs = child_process.spawn(process.argv[0], args, {
silent: true
}).on("exit", function(code) {
console.log("uglifyjs", url.slice(site.length + 1), args.join(" "));
console.log("uglifyjs", url.slice(site.length + 1), args.slice(1).join(" "));
console.log(stderr);
if (code) throw new Error("uglifyjs failed with code " + code);
});