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

View File

@ -147,7 +147,11 @@ export const uploadToS3FromUrl = async (
return `${endpoint}/${key}`; return `${endpoint}/${key}`;
} catch (err) { } catch (err) {
if (process.env.SENTRY_DSN) { if (process.env.SENTRY_DSN) {
Sentry.captureException(err); Sentry.captureException(err, {
extra: {
url,
},
});
} else { } else {
throw err; throw err;
} }