testing: fix error message on invalid regexp R=golang-dev, adg CC=golang-dev https://golang.org/cl/3831041