Skip to content

Commit

Permalink
refactor(worker.js): added underlying error message if a processing e…
Browse files Browse the repository at this point in the history
…rror occurs
  • Loading branch information
adshrc authored Sep 27, 2024
1 parent bd6cc92 commit c103211
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export default {

} catch (error) {
// Return a 202 to prevent retries in case of an error
return new Response('Event was discarded because of a processing error', { status: 202 });
return new Response('Event was discarded because of a processing error: ' + error, { status: 202 });
}
},
};
Expand Down

0 comments on commit c103211

Please sign in to comment.