Fail silently if launch settings don't exist (#857)

This commit is contained in:
Evan Simkowitz 2024-09-25 15:34:31 -07:00 committed by GitHub
parent dea651216d
commit f886aa1e8e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,7 +12,7 @@ export function getLaunchSettings(): SettingsType {
try { try {
const settingsContents = fs.readFileSync(settingsPath, "utf8"); const settingsContents = fs.readFileSync(settingsPath, "utf8");
return JSON.parse(settingsContents); return JSON.parse(settingsContents);
} catch (e) { } catch (_) {
console.error("Unable to load settings.json to get initial launch settings", e); // fail silently
} }
} }