We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 033a839 commit 010e151Copy full SHA for 010e151
error.go
@@ -3,6 +3,7 @@ package oops
3
4
import (
5
"encoding/json"
6
+ "errors"
7
"fmt"
8
"log/slog"
9
"net/http"
@@ -84,7 +85,7 @@ func (o OopsError) Unwrap() error {
84
85
// Is checks if this error matches the target error.
86
// This method implements the errors.Is interface for error comparison.
87
func (c OopsError) Is(err error) bool {
- return c.err == err
88
+ return errors.Is(c.err, err)
89
}
90
91
// Error returns the error message without additional context.
0 commit comments