From 97326339f8e299904cf5c09124dd5ad39bd347fd Mon Sep 17 00:00:00 2001 From: Charles Iliya Krempeaux Date: Mon, 6 Nov 2023 04:26:38 -0800 Subject: [PATCH] initial commits --- errors/errors.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/errors/errors.go b/errors/errors.go index 22819d6..a58614d 100644 --- a/errors/errors.go +++ b/errors/errors.go @@ -10,6 +10,10 @@ const ( ErrUnexpectedEndOfFile = erorr.Error("rfc8259: unexpected end-of-file") ) +func ErrInternalError(msg string) error { + return erorr.Errorf("rfc8259: JSON parser had an unexpected internal-error — %s", msg) +} + func ErrProblemReadingRune(err error) error { return erorr.Errorf("rfc8259: JSON parser had a problem — problem reading rune: %w", err) }