chore: Pass problematic url to error tracking

towards #2319
This commit is contained in:
Tom Moor 2021-07-19 16:57:06 -04:00
parent 3d9eaeeeeb
commit 1726006858
1 changed files with 5 additions and 1 deletions

View File

@ -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;
}