We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e704422 commit d6b1fe7Copy full SHA for d6b1fe7
lambdas/backend-api/src/templates/infra/template-repository.ts
@@ -500,7 +500,10 @@ export class TemplateRepository {
500
);
501
502
if (dbResponse.Items?.length !== 1) {
503
- throw new Error(`Could not identify item by id ${id}`);
+ throw new Error(
504
+ `Could not identify item by id ${id}. Items found: ${dbResponse.Items?.length || 0}`,
505
+ { cause: dbResponse }
506
+ );
507
}
508
509
return dbResponse.Items[0].owner;
0 commit comments