Skip to content

Commit 1269599

Browse files
committed
fix error message
1 parent 44a1990 commit 1269599

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/engines/javascriptcore.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,16 @@ async function getVersionFromBuilder(builder) {
3333
}
3434

3535
async function getMacBuilder() {
36-
switch (await macName()) {
36+
const name = await macName();
37+
switch (name) {
3738
case 'ventura':
3839
return 706;
3940
case 'monterey':
4041
return 368;
4142
case 'sonoma':
4243
return 938;
4344
default:
44-
throw new Error(`Unknown macOS release: ${macName()}`);
45+
throw new Error(`Unsupported macOS release: ${name}`);
4546
}
4647
}
4748

0 commit comments

Comments
 (0)