mirror of
https://github.com/wavetermdev/waveterm
synced 2026-05-06 06:58:21 +00:00
Fail silently if launch settings don't exist (#857)
This commit is contained in:
parent
dea651216d
commit
f886aa1e8e
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue