corrected exception message, plus additional checks to cause GroovyBugErrors