Skip to content

Commit

Permalink
Add status to response string
Browse files Browse the repository at this point in the history
Signed-off-by: Christian König <ckoenig@posteo.de>
  • Loading branch information
yubiuser authored and gregdel committed Aug 21, 2023
1 parent 1025e0d commit 9981463
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion response.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ type Response struct {

// String represents a printable form of the response.
func (r Response) String() string {
ret := fmt.Sprintf("Request id: %s\n", r.ID)
ret := fmt.Sprintf("Status: %d\n", r.Status)
ret += fmt.Sprintf("Request id: %s\n", r.ID)
if r.Receipt != "" {
ret += fmt.Sprintf("Receipt: %s\n", r.Receipt)
}
Expand Down

0 comments on commit 9981463

Please sign in to comment.