We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0387842 commit f42b51cCopy full SHA for f42b51c
src/app/services/task-manager.service.ts
@@ -26,6 +26,7 @@ import { CrowdSourcedUserService } from './crowdsourced-user.service';
26
import { snapshotToStudyTasks } from './utils';
27
import { IErrorNavigationState } from '../pages/error-page/error-page.component';
28
import { getSafeErrorInfo } from '../common/error-utils';
29
+import * as Sentry from '@sentry/angular';
30
31
@Injectable({
32
providedIn: 'root',
@@ -146,6 +147,8 @@ export class TaskManagerService implements CanClear {
146
147
}
148
149
handleErr(err?: any): void {
150
+ Sentry.captureException(err);
151
+
152
this.router.navigate(['task-error'], {
153
state: {
154
taskIndex: this.currentStudyTask?.taskOrder,
0 commit comments