From 5f65f6c506522cf254e69e2248f86eb41d282107 Mon Sep 17 00:00:00 2001 From: Kirillkriv Date: Tue, 6 Oct 2026 14:04:46 +0300 Subject: [PATCH] fix: GoMaxErorr now has Unwrap() method --- v1/errors/errors.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/v1/errors/errors.go b/v1/errors/errors.go index f226e99..b050a81 100644 --- a/v1/errors/errors.go +++ b/v1/errors/errors.go @@ -9,6 +9,10 @@ func (ge *GoMaxError) Error() string { return ge.Err.Error() } +func (ge *GoMaxError) Unwrap() error { + return ge.Err +} + func New(parent error, text string) error { return &GoMaxError{ Message: text,