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 235feed commit ba97ff5Copy full SHA for ba97ff5
1 file changed
packages/snaps-controllers/src/snaps/SnapController.ts
@@ -3684,11 +3684,15 @@ export class SnapController extends BaseController<
3684
3685
const [jsonRpcError, handled] = unwrapError(error);
3686
3687
+ const stopping = runtime.stopPromise !== null || !this.isRunning(snapId);
3688
+
3689
if (!handled) {
- logError(
- `"${snapId}" crashed due to an unhandled error:`,
3690
- jsonRpcError,
3691
- );
+ if (!stopping) {
+ logError(
3692
+ `"${snapId}" crashed due to an unhandled error:`,
3693
+ jsonRpcError,
3694
+ );
3695
+ }
3696
await this.stopSnap(snapId, SnapStatusEvents.Crash);
3697
}
3698
0 commit comments