Skip to content

Commit

Permalink
ignore invalid image
Browse files Browse the repository at this point in the history
  • Loading branch information
InventivetalentDev committed Jul 11, 2024
1 parent 1e91897 commit 0e951b0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -430,3 +430,9 @@ init().then(() => {
});


// Make sure to call Sentry's close method when shutting down your app
process.on('SIGTERM', () => {
Sentry.close().then(() => {
process.exit(0);
});
});
3 changes: 2 additions & 1 deletion src/instrument.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Sentry.init({
"Invalid image file size",
"Invalid image dimensions",
"Failed to find image from url",
"Invalid file size"
"Invalid file size",
"invalid_image"
]
});

0 comments on commit 0e951b0

Please sign in to comment.