From 12695998c35e3fc4cef4da040fedee4a9f942690 Mon Sep 17 00:00:00 2001 From: Gus Caplan Date: Sat, 20 Jan 2024 19:59:49 -0800 Subject: [PATCH] fix error message --- src/engines/javascriptcore.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/engines/javascriptcore.js b/src/engines/javascriptcore.js index 445c567..ef80e3b 100644 --- a/src/engines/javascriptcore.js +++ b/src/engines/javascriptcore.js @@ -33,7 +33,8 @@ async function getVersionFromBuilder(builder) { } async function getMacBuilder() { - switch (await macName()) { + const name = await macName(); + switch (name) { case 'ventura': return 706; case 'monterey': @@ -41,7 +42,7 @@ async function getMacBuilder() { case 'sonoma': return 938; default: - throw new Error(`Unknown macOS release: ${macName()}`); + throw new Error(`Unsupported macOS release: ${name}`); } }