Skip to content

Commit 328e95f

Browse files
nhachichaCopilot
andauthored
Update driver-sync/src/test/functional/com/mongodb/client/unified/EventMatcher.java
Co-authored-by: Copilot <[email protected]>
1 parent 4923f03 commit 328e95f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

driver-sync/src/test/functional/com/mongodb/client/unified/EventMatcher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ private static boolean serverDescriptionChangedEventMatches(final BsonDocument e
454454
case "RSSecondary":
455455
return event.getNewDescription().getType() == ServerType.REPLICA_SET_SECONDARY;
456456
default:
457-
throw new UnsupportedOperationException();
457+
throw new UnsupportedOperationException("Unsupported server type " + newType);
458458
}
459459
}
460460

0 commit comments

Comments
 (0)