Skip to content

Commit e463f14

Browse files
committed
Deliberately break
1 parent 966f6eb commit e463f14

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lambdas/api-handler/src/handlers/letter-status-update.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ export default function createLetterStatusUpdateHandler(
2323
updateLetterCommand.id,
2424
);
2525
letter.status = updateLetterCommand.status;
26+
if (letter.status === "REJECTED") {
27+
throw new Error("error");
28+
}
2629
letter.reasonCode = updateLetterCommand.reasonCode;
2730
letter.reasonText = updateLetterCommand.reasonText;
2831

0 commit comments

Comments
 (0)