diff --git a/reader.go b/reader.go index 04cde7b..628cc79 100644 --- a/reader.go +++ b/reader.go @@ -247,7 +247,7 @@ func (r *Reader) ExpectOneOfString(str ...string) (string, error) { } } - return "", ErrNoMatchFound + return "", ErrNoMatchFound.New() } // Commit clears the internal buffer and therefore removes all data which were already read.