Skip to content

Commit 2e9b362

Browse files
committed
Add error checking code
1 parent 9bc6788 commit 2e9b362

File tree

1 file changed

+4
-0
lines changed
  • functions/zoom-meeting-webhook-handler

1 file changed

+4
-0
lines changed

functions/zoom-meeting-webhook-handler/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ const handler = async function (event, context) {
105105
body: event.body,
106106
});
107107

108+
if (!response.ok) {
109+
throw new Error(`Error: ${response.status} ${response.statusText}`);
110+
}
111+
108112
console.log('EXITING IMMEDIATELY FROM zoom-meeting-webhook-handler')
109113

110114
break;

0 commit comments

Comments
 (0)