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 f9cf023 commit e5aea9bCopy full SHA for e5aea9b
sentry/errors.go
@@ -22,6 +22,7 @@ func (e *APIError) UnmarshalJSON(b []byte) error {
22
}
23
return nil
24
25
+
26
func (e *APIError) MarshalJSON() ([]byte, error) {
27
return json.Marshal(e.f)
28
@@ -41,7 +42,9 @@ func (e APIError) Error() string {
41
42
43
44
// Empty returns true if empty.
-func (e APIError) Empty() bool { return e.f != nil }
45
+func (e APIError) Empty() bool {
46
+ return e.f == nil
47
+}
48
49
func relevantError(httpError error, apiError APIError) error {
50
if httpError != nil {
0 commit comments