Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-1597

Error message when trying to execute a directory should be improved

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0-RC-1
    • 1.5.2
    • None
    • None
    • groovy svn head

    Description

      When trying to execute a directory, e.g.
      groovy c:\temp

      the error message is not very clear:

      org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, c:\temp: c:\temp (Access is denied)

      1 error

      What it actually should say is:

      c:\temp is a directory and can not be executed

      Note that if the patch attached to GROOVY-1596 is not applied, the above results in NPE.

      Attachments

        Activity

          People

            paulk Paul King
            antti.karanta@napa.fi Antti Karanta
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: