fix: GoMaxErorr now has Unwrap() method
This commit is contained in:
1 parent
bf78cd75d3
commit
5f65f6c506
1 file changed
+4
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user