public
/
html-minifier.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e2d098
)
fix cli error reporting
author
alexlamsl
<alexlamsl@gmail.com>
Fri, 5 Feb 2016 19:32:26 +0000
(
03:32
+0800)
committer
alexlamsl
<alexlamsl@gmail.com>
Fri, 5 Feb 2016 19:32:26 +0000
(
03:32
+0800)
it was attempting to write the error object onto stderr, which errs out by itself and masked the original error and stack trace
cli.js
patch
|
blob
|
history
diff --git
a/cli.js
b/cli.js
index
a2dd2cc
..
b4d146d
100755
(executable)
--- a/
cli.js
+++ b/
cli.js
@@
-168,7
+168,7
@@
cli.main(function(args, options) {
catch (e) {
status = 3;
cli.error('Minification error');
- process.stderr.write(
e
);
+ process.stderr.write(
(e.stack || e).toString()
);
}
if (minifyOptions.lint) {