File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change
1
+ # Unreleased
2
+ - [ changed] Add more details to the assertion failure in Query::Comparator() to
3
+ help with future debugging (#9258 ).
4
+
1
5
# v8.14.0
2
6
- [ fixed] Fixed compiler warnings in ` local_serializer.cc ` about "implicit
3
7
conversion loses integer precision" that were introduced in 8.13.0 (#9430 ).
Original file line number Diff line number Diff line change @@ -279,8 +279,10 @@ model::DocumentComparator Query::Comparator() const {
279
279
break ;
280
280
}
281
281
}
282
- HARD_ASSERT (has_key_ordering,
283
- " QueryComparator needs to have a key ordering." );
282
+
283
+ if (!has_key_ordering) {
284
+ HARD_FAIL (" QueryComparator needs to have a key ordering: %s" , ToString ());
285
+ }
284
286
285
287
return DocumentComparator (
286
288
[ordering](const Document& doc1, const Document& doc2) {
You can’t perform that action at this time.
0 commit comments