-
Notifications
You must be signed in to change notification settings - Fork 1.8k
chore: Try storing error JSON in sentry #4758
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Try storing error JSON in sentry #4758
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/eventyay/open-event-frontend/h33t332t4 |
Issues
======
- Added 4
See the complete overview on Codacy |
...event.extra, | ||
error_json: JSON.stringify(error) | ||
} | ||
} catch { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codacy found an issue: Expected indentation of 6 spaces but found 12.
// Try to store JSON of error for diagnosing bugs | ||
event.extra = { | ||
...event.extra, | ||
error_json: JSON.stringify(error) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codacy found an issue: Expected indentation of 10 spaces but found 20.
@@ -45,6 +45,16 @@ if (!config.sentry.dsn.includes('dummy')) { | |||
adapter_errors_json: JSON.stringify(error.errors) | |||
} | |||
} | |||
|
|||
try { | |||
// Try to store JSON of error for diagnosing bugs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codacy found an issue: Expected indentation of 8 spaces but found 16.
@@ -45,6 +45,16 @@ if (!config.sentry.dsn.includes('dummy')) { | |||
adapter_errors_json: JSON.stringify(error.errors) | |||
} | |||
} | |||
|
|||
try { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codacy found an issue: Expected indentation of 6 spaces but found 12.
No description provided.