Skip to content

Commit 35f9ccd

Browse files
sirdeggenclaude
andauthored
fix: quote ErrorStatus JSON value to produce valid JSON (#204)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 6b74426 commit 35f9ccd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/internal/payment/errors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import "net/http"
55
type ErrorStatus string
66

77
func (s ErrorStatus) MarshalJSON() ([]byte, error) {
8-
return []byte("error"), nil
8+
return []byte(`"error"`), nil
99
}
1010

1111
type ErrorResponse struct {

0 commit comments

Comments
 (0)