mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-02 18:39:05 +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 {
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user