[Pkg-javascript-commits] [uglifyjs] 112/491: widen CLI parse error code fragment displayed (#2032)
Jonas Smedegaard
dr at jones.dk
Wed Feb 14 19:51:26 UTC 2018
This is an automated email from the git hooks/post-receive script.
js pushed a commit to annotated tag debian/3.3.10-1
in repository uglifyjs.
commit 55b5f2a8aa90a69e523c0a53ca92fcef45e5b209
Author: Alex Lam S.L <alexlamsl at gmail.com>
Date: Wed May 31 01:56:52 2017 +0800
widen CLI parse error code fragment displayed (#2032)
fixes #2030
---
bin/uglifyjs | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/bin/uglifyjs b/bin/uglifyjs
index a2039f7..ef2020c 100755
--- a/bin/uglifyjs
+++ b/bin/uglifyjs
@@ -225,9 +225,10 @@ function run() {
col = line.length;
}
if (line) {
- if (col > 40) {
- line = line.slice(col - 40);
- col = 40;
+ var limit = 78;
+ if (col > limit) {
+ line = line.slice(col - limit);
+ col = limit;
}
console.error(line.slice(0, 80));
console.error(line.slice(0, col).replace(/\S/g, " ") + "^");
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/uglifyjs.git
More information about the Pkg-javascript-commits
mailing list