kube icon indicating copy to clipboard operation
kube copied to clipboard

Merge ApiStatus + ErrorResponse

Open clux opened this issue 6 years ago • 1 comments

Follow up from #36 Currently Status and ErrorResponse are the same underlying object in kube AFAIKT, but are returned in different contexts:

  • ErrorResponse when !request.is_success() (and you need to grab it out of the Error)
  • Status when request.is_success() and is_right()

We should standardise this to reduce duplication.

clux avatar Jun 03 '19 21:06 clux

Edited this issue as ApiError was renamed to ErrorResponse when moving to thiserror.

clux avatar Nov 11 '19 21:11 clux