mirror of
https://github.com/Hypfer/Valetudo.git
synced 2025-10-26 11:27:27 +00:00
fix: Don't crash the process if we're not able to persist the config
This commit is contained in:
parent
d8714ddeb9
commit
cc0cd41852
@ -47,7 +47,11 @@ class Configuration {
|
||||
}
|
||||
|
||||
persist() {
|
||||
fs.writeFileSync(this.location, this.getSerializedConfig());
|
||||
try {
|
||||
fs.writeFileSync(this.location, this.getSerializedConfig());
|
||||
} catch (e) {
|
||||
Logger.error("Error while persisting configuration", e);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user