Skip to content

Conversation

@benjamn
Copy link

@benjamn benjamn commented Apr 5, 2011

When parsing fails, the standalone program currently drops into the SBCL debugger, which is fine when running cl-uglify-js from the command line, but not easy to handle when running cl-uglify-js from a script, for example via Python's subprocess.Popen facility.

This change makes the main function catch any parse-js:js-parse-errors that are raised, log the line and column numbers to *error-output*, and return an empty string.

…nto the debugger

this makes it easier to use the standalone program in a UNIX environment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant