Skip to content

Commit

Permalink
Update mongox/collection.go
Browse files Browse the repository at this point in the history
Co-authored-by: rot1024 <[email protected]>
  • Loading branch information
yk-eukarya and rot1024 authored Nov 21, 2024
1 parent d74492a commit a1cc45f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mongox/collection.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ func getCursor(raw bson.Raw) (*usecasex.Cursor, error) {

func wrapError(ctx context.Context, err error) error {
if IsTransactionError(err) {
log.Error(ctx, "transaction error", err)
log.Errorfc(ctx, "transaction error: %v", err)
return usecasex.ErrTransaction
}
return rerror.ErrInternalByWithContext(ctx, err)
Expand Down

0 comments on commit a1cc45f

Please sign in to comment.