From f886aa1e8e0368e8cf4dcca079967efc0b142ab5 Mon Sep 17 00:00:00 2001 From: Evan Simkowitz Date: Wed, 25 Sep 2024 15:34:31 -0700 Subject: [PATCH] Fail silently if launch settings don't exist (#857) --- emain/launchsettings.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emain/launchsettings.ts b/emain/launchsettings.ts index 7600c39c4..92339c915 100644 --- a/emain/launchsettings.ts +++ b/emain/launchsettings.ts @@ -12,7 +12,7 @@ export function getLaunchSettings(): SettingsType { try { const settingsContents = fs.readFileSync(settingsPath, "utf8"); return JSON.parse(settingsContents); - } catch (e) { - console.error("Unable to load settings.json to get initial launch settings", e); + } catch (_) { + // fail silently } }