fix the error message so it is the same as the regex issue #1999
Merge pull request #2004 from kencochrane/master

fix the error message so it is the same as the regex issue #1999