Skip to content

Commit

Permalink
chore: add logs to datastore client
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan-pad committed May 21, 2024
1 parent 9ae0ac0 commit 541d049
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/datastore/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func (c *DefaultClient) PutPlan(namespace string, layer string, run string, atte
if resp.StatusCode != http.StatusOK {
message, err := io.ReadAll(resp.Body)
if err != nil {
return fmt.Errorf("could not put plan, there's an issue reading the response from datastore")
return fmt.Errorf("could not put plan, there's an issue reading the response from datastore: %s", err)
}
return fmt.Errorf("could not put plan, there's an issue with the storage backend: %s", string(message))
}
Expand Down

0 comments on commit 541d049

Please sign in to comment.