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 7e43ba7 commit 18ebe6dCopy full SHA for 18ebe6d
packages/snaps-controllers/src/snaps/SnapController.ts
@@ -1507,7 +1507,10 @@ export class SnapController extends BaseController<
1507
);
1508
}
1509
1510
- _onUnhandledSnapError(snapId: string, _error: SnapErrorJson) {
+ _onUnhandledSnapError(snapId: string, error: SnapErrorJson) {
1511
+ // Log the error that caused the crash
1512
+ // so it gets raised to the developer for debugging purposes.
1513
+ logError(error);
1514
this.stopSnap(snapId as SnapId, SnapStatusEvents.Crash).catch(
1515
(stopSnapError) => {
1516
// TODO: Decide how to handle errors.
0 commit comments