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 210045c commit 774e7f5Copy full SHA for 774e7f5
scw/errors.go
@@ -50,9 +50,6 @@ func (e *ResponseError) UnmarshalJSON(b []byte) error {
50
if err != nil {
51
return err
52
}
53
-
54
- tmp.Message = strings.ToLower(tmp.Message)
55
56
*e = ResponseError(tmp)
57
return nil
58
scw/errors_test.go
@@ -149,7 +149,7 @@ func TestNonStandardError(t *testing.T) {
149
expectedError: &ResponseError{
150
Status: "409 Conflict",
151
StatusCode: http.StatusConflict,
152
- Message: "group is in use. you cannot delete it.",
+ Message: "Group is in use. You cannot delete it.",
153
Type: "conflict",
154
RawBody: []byte(`{"message": "Group is in use. You cannot delete it.", "type": "conflict"}`),
155
},
0 commit comments