Skip to content

Commit 56a2475

Browse files
Address PR comments
1 parent a37aae9 commit 56a2475

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/snaps-controllers/src/services/AbstractExecutionService.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ describe('AbstractExecutionService', () => {
5959
endowments: ['console'],
6060
}),
6161
).rejects.toThrow(
62-
'The executor for npm:@metamask/example-snap was unreachable.',
62+
'The executor for "npm:@metamask/example-snap" was unreachable. The executor did not respond in time.',
6363
);
6464
});
6565

@@ -81,7 +81,7 @@ describe('AbstractExecutionService', () => {
8181
endowments: ['console'],
8282
}),
8383
).rejects.toThrow(
84-
`The executor for npm:@metamask/example-snap couldn't start initialization. The offscreen document may not exist.`,
84+
`The executor for "npm:@metamask/example-snap" couldn't start initialization. The offscreen document may not exist.`,
8585
);
8686
});
8787

@@ -105,7 +105,7 @@ describe('AbstractExecutionService', () => {
105105
endowments: ['console'],
106106
}),
107107
).rejects.toThrow(
108-
'The executor for npm:@metamask/example-snap failed to initialize. The iframe/webview/worker failed to load.',
108+
'The executor for "npm:@metamask/example-snap" failed to initialize. The iframe/webview/worker failed to load.',
109109
);
110110
});
111111

packages/snaps-controllers/src/services/AbstractExecutionService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ export abstract class AbstractExecutionService<WorkerType>
392392

393393
if (pingResult === hasTimedOut) {
394394
throw new Error(
395-
`The executor for ${snapId} was unreachable. The executor did not respond in time.`,
395+
`The executor for "${snapId}" was unreachable. The executor did not respond in time.`,
396396
);
397397
}
398398
}

0 commit comments

Comments
 (0)