Skip to content

Commit

Permalink
fix: Don't crash the process if we're not able to persist the config
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypfer committed Jun 2, 2024
1 parent d8714dd commit cc0cd41
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion backend/lib/Configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

/**
Expand Down

0 comments on commit cc0cd41

Please sign in to comment.