Skip to content
Closed
Changes from all 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
3 changes: 2 additions & 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,8 @@ 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_two_array[0]._id}, ${first_two_array[1]._id}, ...]`);
}
return first_two_array[0];
}
Expand Down