Closed ok300 closed 1 month ago
Before this PR, POST calls that would fail with an HTTP error code would be returned as Ok(error_message).
Ok(error_message)
This PR consolidates error handling in post such that, in the case above, the method returns Err(Error::HTTP(error_message)).
post
Err(Error::HTTP(error_message))
Thanks @ok300 !
Before this PR, POST calls that would fail with an HTTP error code would be returned as
Ok(error_message)
.This PR consolidates error handling in
post
such that, in the case above, the method returnsErr(Error::HTTP(error_message))
.