Skip to content
Closed
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion npm-packages/convex/src/server/impl/query_impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ export class QueryImpl implements Query<GenericTableInfo> {
return null;
}
if (first_two_array.length === 2) {
throw new Error("unique() query returned more than one result");
throw new Error(`unique() query returned more than one result. First pair of results: ${first_two_array[0]._id} and ${first_two_array[1]._id}`);
}
return first_two_array[0];
}
Expand Down