Skip to content

Commit 9d7d601

Browse files
Return raw error
1 parent b7d0a51 commit 9d7d601

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x/mongo/driver/operation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ func (op Operation) Execute(ctx context.Context) error {
650650
if err != nil {
651651
// If the returned error is a context error, return it immediately.
652652
if ctx.Err() != nil {
653-
err = ctx.Err()
653+
return err
654654
}
655655

656656
// If the returned error is retryable and there are retries remaining (negative

0 commit comments

Comments
 (0)