log error
This commit is contained in:
parent
f929fdcb70
commit
6c9add4dd7
@ -56,7 +56,9 @@ impl CurrentProgram {
|
||||
});
|
||||
|
||||
let json: String = serde_json::to_string(&data).expect("Serialize status data failed");
|
||||
fs::write(config.general.stat_file.clone(), &json).expect("Unable to write file");
|
||||
if let Err(e) = fs::write(config.general.stat_file.clone(), &json) {
|
||||
error!("Unable to write status file: {e}");
|
||||
};
|
||||
}
|
||||
|
||||
Self {
|
||||
|
Loading…
x
Reference in New Issue
Block a user