fix: Don't crash the process if we're not able to persist the config

This commit is contained in:
Sören Beye 2024-06-02 19:14:25 +02:00
parent d8714ddeb9
commit cc0cd41852

View File

@ -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);
}
}
/**