diff --git a/builtins.go b/builtins.go index c024ab5..9ccd3bc 100644 --- a/builtins.go +++ b/builtins.go @@ -210,7 +210,7 @@ func regex(v interface{}, param string) error { } if !re.MatchString(s) { - return ErrRegexp + return TextErr{errors.New(fmt.Sprintf("regular expression mismatch - value: '%s', expected pattern: '%s'", s, param))} } return nil }