Mask underlying errors in TransactionOperationFailed

Description

When we return a TOF to the user then we return the underlying error cause when Unwrap is used. We have an issue that if we return errors like doc not found or doc exists for a situation where the doc involved is actually ancillary to the transaction then the user could catch it and it won't be doing what they expect. TOF is meant to be opaque anyway so we should mask the underlying error and in the case of doc not found return that error directly when applicable.

Environment

None

Gerrit Reviews

None

Release Notes Description

None

Activity

Show:
Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Story Points

Fix versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created June 6, 2022 at 7:36 AM
Updated June 6, 2022 at 5:12 PM
Resolved June 6, 2022 at 5:12 PM
Instabug