Skip to content

Commit

Permalink
CBG-3764-anemone Correct error type checking (#6810)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamcfraser committed Aug 11, 2024
1 parent 9a2b9ca commit a487f0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/crud.go
Original file line number Diff line number Diff line change
Expand Up @@ -3024,7 +3024,7 @@ func (db *DatabaseCollectionWithUser) CheckProposedVersion(ctx context.Context,
localDocCV.SourceID, localDocCV.Value = doc.HLV.GetCurrentVersion()
}
if err != nil {
if !base.IsDocNotFoundError(err) && err != base.ErrXattrNotFound {
if !base.IsDocNotFoundError(err) && !errors.Is(err, base.ErrXattrNotFound) {
base.WarnfCtx(ctx, "CheckProposedRev(%q) --> %T %v", base.UD(docid), err, err)
return ProposedRev_Error, ""
}
Expand Down

0 comments on commit a487f0d

Please sign in to comment.