Details
-
Improvement
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
1.0-JSR-2
-
None
-
None
Description
The following two examples does not report a useful error message:
File dir = new File("SomeNonExistingDir")
dir.eachFile {
println "${it} "
}
File dir = new File("${dirname_source}/GroovyClosureMethodsTest.groovy")
dir.eachFile {
println "${it} "
}
Included is a patch with these two test cases that attempts to resolve this by throwing exceptions.