Skip to content

Commit d6b1fe7

Browse files
committed
debugging
1 parent e704422 commit d6b1fe7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lambdas/backend-api/src/templates/infra/template-repository.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,10 @@ export class TemplateRepository {
500500
);
501501

502502
if (dbResponse.Items?.length !== 1) {
503-
throw new Error(`Could not identify item by id ${id}`);
503+
throw new Error(
504+
`Could not identify item by id ${id}. Items found: ${dbResponse.Items?.length || 0}`,
505+
{ cause: dbResponse }
506+
);
504507
}
505508

506509
return dbResponse.Items[0].owner;

0 commit comments

Comments
 (0)