Skip to content
This repository has been archived by the owner on Mar 2, 2024. It is now read-only.

Commit

Permalink
🐛 Fix server side errors getting muted (#417)
Browse files Browse the repository at this point in the history
  • Loading branch information
Julius Pedersen committed Mar 24, 2021
1 parent bf1942c commit 9afba96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/release_notes/0.0.50.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@

KM203: Add handling of timeout errors for certificate creation during IdentityManager creation

🐛 Fix server side to client side errors getting muted when unable to deserialize the JSON

## Other
2 changes: 1 addition & 1 deletion pkg/client/core/api/rest/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func deserializeErrorPayload(jsonContent []byte) error {
err := json.Unmarshal(jsonContent, &data)
if err != nil {
return errors.E(
fmt.Errorf("unmarshalling error from server side: %w", err),
fmt.Errorf("unmarshalling error from server side: %w: %s", err, string(jsonContent)),
errors.Internal)
}

Expand Down

0 comments on commit 9afba96

Please sign in to comment.