Change-Id: I883e7b6554646f32ad44e4ea6583440c33f02b84
Reviewed-on: https://go-review.googlesource.com/c/go/+/587595
Reviewed-by: Robert Griesemer <gri@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
const (
// RERR_ is for runtime error, and may be regexps/substrings, to simplify use of tests with tools
- RERR_DONE = "runtime error: range function continued iteration after loop body exit"
+ RERR_DONE = "runtime error: range function continued iteration after function for loop body returned false"
RERR_PANIC = "runtime error: range function continued iteration after loop body panic"
RERR_EXHAUSTED = "runtime error: range function continued iteration after whole loop exit"
RERR_MISSING = "runtime error: range function recovered a loop body panic and did not resume panicking"
// been set and must not be clobbered.
}
-var rangeDoneError = error(errorString("range function continued iteration after loop body exit"))
+var rangeDoneError = error(errorString("range function continued iteration after function for loop body returned false"))
var rangePanicError = error(errorString("range function continued iteration after loop body panic"))
var rangeExhaustedError = error(errorString("range function continued iteration after whole loop exit"))
var rangeMissingPanicError = error(errorString("range function recovered a loop body panic and did not resume panicking"))