OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Handle string messages
Oliver Güntherc331f42ef6a2
diff --git a/frontend/src/app/sentry/sentry-reporter.ts b/frontend/src/app/sentry/sentry-reporter.tsindex 2c87e3ed186..d10564bc19d 100644--- a/frontend/src/app/sentry/sentry-reporter.ts+++ b/frontend/src/app/sentry/sentry-reporter.ts@@ -107,11 +107,15 @@ export class SentryReporter implements ErrorReporter {});}- public captureException(err:Error) {- if (!this.client) {+ public captureException(err:Error|string) {+ if (!this.client || !err) {return this.handleOfflineMessage('captureException', Array.from(arguments));}+ if (typeof err === 'string') {+ return this.captureMessage(err, 'error');+ }+this.client.withScope((scope:Scope) => {this.setupContext(scope);this.client.captureException(err);