Skip to content

Commit

Permalink
chore: Pass problematic url to error tracking
Browse files Browse the repository at this point in the history
towards #2319
  • Loading branch information
tommoor committed Jul 19, 2021
1 parent 3d9eaee commit 1726006
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/utils/s3.js
Expand Up @@ -147,7 +147,11 @@ export const uploadToS3FromUrl = async (
return `${endpoint}/${key}`;
} catch (err) {
if (process.env.SENTRY_DSN) {
Sentry.captureException(err);
Sentry.captureException(err, {
extra: {
url,
},
});
} else {
throw err;
}
Expand Down

0 comments on commit 1726006

Please sign in to comment.