mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-21 16:38:23 +01:00
Fail silently if launch settings don't exist (#857)
This commit is contained in:
parent
dea651216d
commit
f886aa1e8e
@ -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 New Issue
Block a user