Skip to content

Commit fc55b9d

Browse files
Tweak error message
1 parent d8c0082 commit fc55b9d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/snaps-controllers/src/snaps/SnapController.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1947,7 +1947,7 @@ describe('SnapController', () => {
19471947
expect(results[0].status).toBe('fulfilled');
19481948
expect(results[1].status).toBe('rejected');
19491949
expect((results[1] as PromiseRejectedResult).reason.message).toBe(
1950-
`${snap.id} has been stopped and the request was cancelled.`,
1950+
`${snap.id} was stopped and the request was cancelled. This is likely because the Snap crashed.`,
19511951
);
19521952

19531953
snapController.destroy();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3646,7 +3646,7 @@ export class SnapController extends BaseController<
36463646
runtime.stopPromise !== null || !this.isRunning(snapId);
36473647
throw new Error(
36483648
stopping
3649-
? `${snapId} has been stopped and the request was cancelled.`
3649+
? `${snapId} was stopped and the request was cancelled. This is likely because the Snap crashed.`
36503650
: `${snapId} failed to respond to the request in time.`,
36513651
);
36523652
}

0 commit comments

Comments
 (0)