Skip to content

Commit 2c2a96a

Browse files
Capture exception
1 parent e8dc3e2 commit 2c2a96a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/snaps-controllers/src/snaps/SnapController.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1483,6 +1483,11 @@ export class SnapController extends BaseController<
14831483
logWarning(
14841484
`The permissions for "${snap.id}" were out of sync and have been automatically restored. If you see this message, please file a bug report.`,
14851485
);
1486+
this.messenger.captureException?.(
1487+
new Error(
1488+
`The permissions for "${snap.id}" were out of sync and have been automatically restored. This could indicate persistence issues.`,
1489+
),
1490+
);
14861491
}
14871492
}
14881493
}

0 commit comments

Comments
 (0)