Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slight usability improvement to build/main.lisp #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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