File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/query Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -94,8 +94,8 @@ public Query addCriteria(CriteriaDefinition criteriaDefinition) {
94
94
this .criteria .put (key , criteriaDefinition );
95
95
} else {
96
96
throw new InvalidMongoDbApiUsageException (
97
- "Due to limitations of the com.mongodb.BasicDocument, " + " you can't add a second '" + key + " ' criteria. "
98
- + "Query already contains '" + serializeToJsonSafely (existing .getCriteriaObject ()) + "'." );
97
+ String . format ( "Due to limitations of the com.mongodb.BasicDocument, you can't add a second '%s ' criteria. "
98
+ + "Query already contains '%s'" , key , serializeToJsonSafely (existing .getCriteriaObject ())) );
99
99
}
100
100
101
101
return this ;
You can’t perform that action at this time.
0 commit comments