Skip to content

Commit e4dabe9

Browse files
[chore] Add body when gateway returns non-200 error code
1 parent 6b7b770 commit e4dabe9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/secrets/common/handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ func (h *Handler) Execute(
424424
return err
425425
}
426426
if status != http.StatusOK {
427-
return fmt.Errorf("gateway returned a non-200 status code: %d", status)
427+
return fmt.Errorf("gateway returned a non-200 status code: status_code=%d, body=%s", status, respBody)
428428
}
429429
return h.ParseVaultGatewayResponse(method, respBody)
430430
}

0 commit comments

Comments
 (0)