Skip to content

Commit

Permalink
Mention that closure errors may be clearer with -g1, since then it is…
Browse files Browse the repository at this point in the history
…n't all on one line (emscripten-core#8389)
  • Loading branch information
kripken authored and belraquib committed Dec 23, 2020
1 parent 631e387 commit 9e09da5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -2445,7 +2445,10 @@ def closure_compiler(filename, pretty=True):
proc = run_process(args, stderr=PIPE, check=False)
if proc.returncode != 0:
sys.stderr.write(proc.stderr)
exit_with_error('closure compiler failed (rc: %d)', proc.returncode)
hint = ''
if not pretty:
hint = ' the error message may be clearer with -g1'
exit_with_error('closure compiler failed (rc: %d.%s)', proc.returncode, hint)

return outfile

Expand Down

0 comments on commit 9e09da5

Please sign in to comment.