aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2017-05-31 01:56:52 +0800
committerGitHub <noreply@github.com>2017-05-31 01:56:52 +0800
commit55b5f2a8aa90a69e523c0a53ca92fcef45e5b209 (patch)
tree2889651dc1d2c75be3db6f8d9d918fb81527967e /bin
parent4e0a22e5c88ac841a3bb67081454f2a83dbfe1a7 (diff)
downloadtracifyjs-55b5f2a8aa90a69e523c0a53ca92fcef45e5b209.tar.gz
tracifyjs-55b5f2a8aa90a69e523c0a53ca92fcef45e5b209.zip
widen CLI parse error code fragment displayed (#2032)
fixes #2030
Diffstat (limited to 'bin')
-rwxr-xr-xbin/uglifyjs7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/uglifyjs b/bin/uglifyjs
index a2039f7e..ef2020c5 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, " ") + "^");
5-13 10:46:03 +0200'>2019-05-13doc: Add Russian translation....Ludovic Courtès 2019-05-01nls: Revert latest guix-manual.zh_CN changes....Ludovic Courtès 2019-05-01nls: Fix cross-reference syntax error in 'guix-manual.es.po'....Ludovic Courtès 2019-05-01nls: Update manual translations for de, es, fr, and zh_CN.Ludovic Courtès 2019-04-30build: 'guix-manual.*.po' no longer depends on 'guix-manual.pot'....Ludovic Courtès 2019-04-30nls: Remove 'guix-manual.pot'....Ludovic Courtès 2019-04-29maint: Mark 'doc-pot-update' and 'doc-po-update' as phony....Ludovic Courtès 2019-04-27nls: Fix wrong include name....Clément Lassieur 2019-04-27nls: Update 'zh_CN' translation....Julien Lepiller 2019-04-25nls: Update 'es' translation.Julien Lepiller 2019-04-25nls: Update 'de' translation.Julien Lepiller 2019-04-25nls: Update 'fr' translation.Julien Lepiller 2019-04-24nls: Update 'fr' translation of the manual.Julien Lepiller 2019-04-24doc: Add Simplified Chinese translation....Ludovic Courtès 2019-04-24nls: Fix guix-manual.zh_CN.po....Ludovic Courtès 2019-04-24doc: Add zh_CN PO file....Ludovic Courtès 2019-04-23doc: Add Spanish translation....Miguel Ángel Arruga Vivas 2019-04-17nls: Update 'de' translation of the manual.Ludovic Courtès 2019-04-02nls: Update 'de' translation of the manual.Ludovic Courtès 2019-03-12nls: Update 'de' translation of the manual.Julien Lepiller 2019-03-01nls: Update 'fr' translation of the manual.Julien Lepiller 2019-01-28nls: Update 'de' translation of the manual.Ludovic Courtès