Skip to content

Commit f42b51c

Browse files
committed
hotfix: more logging
1 parent 0387842 commit f42b51c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/app/services/task-manager.service.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import { CrowdSourcedUserService } from './crowdsourced-user.service';
2626
import { snapshotToStudyTasks } from './utils';
2727
import { IErrorNavigationState } from '../pages/error-page/error-page.component';
2828
import { getSafeErrorInfo } from '../common/error-utils';
29+
import * as Sentry from '@sentry/angular';
2930

3031
@Injectable({
3132
providedIn: 'root',
@@ -146,6 +147,8 @@ export class TaskManagerService implements CanClear {
146147
}
147148

148149
handleErr(err?: any): void {
150+
Sentry.captureException(err);
151+
149152
this.router.navigate(['task-error'], {
150153
state: {
151154
taskIndex: this.currentStudyTask?.taskOrder,

0 commit comments

Comments
 (0)