feat(cli): start with capital letter in logs

This commit is contained in:
Tien Do Nam
2026-07-31 02:16:00 +02:00
parent 69965f59c6
commit 00f9bad89b
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -297,7 +297,7 @@ impl App {
let alias = session.alias.clone();
self.ui.log(
Category::Receive,
&format!("{alias}: failed to receive {name}: {err}"),
&format!("{alias}: Failed to receive {name}: {err}"),
);
}
}
@@ -334,7 +334,7 @@ impl App {
self.ui.log(
Category::Receive,
&format!(
"{}: cancelled by sender ({} of {} files received)",
"{}: Cancelled by sender ({} of {} files received)",
session.alias,
session.finished_files,
session.files.len(),
+3 -3
View File
@@ -212,7 +212,7 @@ async fn send_inner(
Err(ClientError::Cancelled) => {
if cancel.by_peer.load(Ordering::Relaxed) {
log(format!(
"{alias}: cancelled by receiver ({sent_files} file(s) sent)"
"{alias}: Cancelled by receiver ({sent_files} file(s) sent)"
))
.await;
} else {
@@ -225,13 +225,13 @@ async fn send_inner(
&response.session_id,
)
.await;
log(format!("{alias}: cancelled ({sent_files} file(s) sent)")).await;
log(format!("{alias}: Cancelled ({sent_files} file(s) sent)")).await;
}
return;
}
Err(err) => {
log(format!(
"{alias}: failed to upload {}: {err}",
"{alias}: Failed to upload {}: {err}",
file.file_name
))
.await;