This commit is contained in:
veeso
2023-02-11 12:23:56 +01:00
parent 62003308a7
commit 4d5f3a6b63
40 changed files with 139 additions and 147 deletions
@@ -10,13 +10,13 @@ impl FileTransferActivity {
match self.host.exec(input.as_str()) {
Ok(output) => {
// Reload files
self.log(LogLevel::Info, format!("\"{}\": {}", input, output));
self.log(LogLevel::Info, format!("\"{input}\": {output}"));
}
Err(err) => {
// Report err
self.log_and_alert(
LogLevel::Error,
format!("Could not execute command \"{}\": {}", input, err),
format!("Could not execute command \"{input}\": {err}"),
);
}
}
@@ -28,14 +28,14 @@ impl FileTransferActivity {
// Reload files
self.log(
LogLevel::Info,
format!("\"{}\" (exitcode: {}): {}", input, rc, output),
format!("\"{input}\" (exitcode: {rc}): {output}"),
);
}
Err(err) => {
// Report err
self.log_and_alert(
LogLevel::Error,
format!("Could not execute command \"{}\": {}", input, err),
format!("Could not execute command \"{input}\": {err}"),
);
}
}