fix: GoMaxErorr now has Unwrap() method

This commit is contained in:
abelith committed 2026-10-06 14:04:46 +03:00
1 parent bf78cd75d3
commit 5f65f6c506
1 file changed
+4
+4
View File
@@ -9,6 +9,10 @@ func (ge *GoMaxError) Error() string {
return ge.Err.Error() return ge.Err.Error()
} }
func (ge *GoMaxError) Unwrap() error {
return ge.Err
}
func New(parent error, text string) error { func New(parent error, text string) error {
return &GoMaxError{ return &GoMaxError{
Message: text, Message: text,