Skip to content

Commit 9981463

Browse files
yubiusergregdel
authored andcommitted
Add status to response string
Signed-off-by: Christian König <[email protected]>
1 parent 1025e0d commit 9981463

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

response.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ type Response struct {
1313

1414
// String represents a printable form of the response.
1515
func (r Response) String() string {
16-
ret := fmt.Sprintf("Request id: %s\n", r.ID)
16+
ret := fmt.Sprintf("Status: %d\n", r.Status)
17+
ret += fmt.Sprintf("Request id: %s\n", r.ID)
1718
if r.Receipt != "" {
1819
ret += fmt.Sprintf("Receipt: %s\n", r.Receipt)
1920
}

0 commit comments

Comments
 (0)