Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
object/searchv2: Keep full error message in the status response
Previously, `SearchV2` RPC server responded with the deepest Go error message in the status message. To achieve this, the server made `errors .Unwrap` to the lowest level. This approach was reused from other API calls, so it brought up the same shortcomings to new search. For example, CLI user could face following error: ``` rpc error: status: code = 1024 message = illegal base64 data at input byte 4 ``` and only imagine which part of the request processing is an invalid Base64. This cancels error unwrapping for `SearchV2`, making it to respond with: ``` rpc error: status: code = 1024 message = invalid cursor: decode cursor from Base64: illegal base64 data at input byte 0 ``` instead. Refs #2744. Refs #3058. Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
- Loading branch information