Skip to content

Commit 12a4228

Browse files
authored
Merge branch 'main' into PCSM-226
2 parents 2508d2e + 367bb81 commit 12a4228

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

errors/errors.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ import (
55
"fmt"
66
)
77

8-
// ErrUnsupported indicates an unsupported operation.
9-
var ErrUnsupported = errors.ErrUnsupported
10-
118
// wrappedError wraps an error with an additional message.
129
type wrappedError struct {
1310
cause error

pcsm/events.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -612,9 +612,9 @@ func parseChangeEvent(data bson.Raw, change *ChangeEvent) error {
612612
change.Event = e
613613

614614
case ReshardCollection:
615-
return errors.ErrUnsupported
615+
return errors.New("reshardCollection operation is not supported")
616616
case RefineCollectionShardKey:
617-
return errors.ErrUnsupported
617+
return errors.New("refineCollectionShardKey operation is not supported")
618618

619619
case Invalidate:
620620
return ErrInvalidateEvent

0 commit comments

Comments
 (0)