Skip to content
This repository has been archived by the owner on Nov 24, 2017. It is now read-only.

Reflect minification result using the exit code #69

Open
garside opened this issue Jun 24, 2013 · 0 comments
Open

Reflect minification result using the exit code #69

garside opened this issue Jun 24, 2013 · 0 comments

Comments

@garside
Copy link

garside commented Jun 24, 2013

When the underlying minifier runs, it "silently fails" as Juicer returns with a 0 exit code regardless of the status of the underlying minifier.

If the tool could bubble up any underlying compiler exceptions through a non-zero exit code, these sort of compiler failures can be programmatically detected and dealt with.

Example:

~/ $ juicer merge lib/jquery/jquery/jquery.js --skip-verification
[ERROR] 4051:32:missing name after . operator

... snip ...

[ERROR] 1:0:Compilation produced 30 syntax errors.
org.mozilla.javascript.EvaluatorException: Compilation produced 30 syntax errors.
... snip ...
at com.yahoo.platform.yui.compressor.Bootstrap.main(Bootstrap.java:21)
Produced lib/jquery/jquery/jquery.min.js from
lib/jquery/jquery/jquery.js

~/ $ echo $?
0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant