Skip to content

processargs exception print is not very useful #1

Description

@bdkearns

antlr4 build fails with simply "1.6" printed to console when Java 1.6 isn't present. str(e) just prints the exception args, which in this KeyError case is "1.6", not even really an indication of an error. I'd suggest replacing "print e" with "traceback.print_exc()".

also, this code is idented with tabs. i would have done a pull request but my editor isn't set up to use tabs in python code, and i think you'll find most others expect python indentation with spaces also.

http://legacy.python.org/dev/peps/pep-0008/#tabs-or-spaces

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions