Skip to content

Commit

Permalink
Add error checking code
Browse files Browse the repository at this point in the history
  • Loading branch information
ebanner committed Jun 17, 2024
1 parent 9bc6788 commit 2e9b362
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions functions/zoom-meeting-webhook-handler/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ const handler = async function (event, context) {
body: event.body,
});

if (!response.ok) {
throw new Error(`Error: ${response.status} ${response.statusText}`);
}

console.log('EXITING IMMEDIATELY FROM zoom-meeting-webhook-handler')

break;
Expand Down

0 comments on commit 2e9b362

Please sign in to comment.