From 4f269d0f290ad6d20521347ec3c15a29fd4882e7 Mon Sep 17 00:00:00 2001 From: milarin Date: Fri, 14 Jul 2023 20:35:11 +0200 Subject: [PATCH] fixed error template as template --- reader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.