summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2025-10-27 17:57:24 +0800
committer魏曹先生 <1992414357@qq.com>2025-10-27 17:57:24 +0800
commit28bdbb4ba457eb9e0707d2760f5d042ca6b7db68 (patch)
tree54a7e3f843b9661d0f7a6250f34021254c01629a /src/bin
parent5417544f09c9b1964067d8e5597cce5873b76ee3 (diff)
Add output for jvv service listen command results
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/jvv.rs16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/bin/jvv.rs b/src/bin/jvv.rs
index 1886daa..f6fbeaa 100644
--- a/src/bin/jvv.rs
+++ b/src/bin/jvv.rs
@@ -19,7 +19,7 @@ use just_enough_vcs::{
use just_enough_vcs_cli::utils::{
build_env_logger::build_env_logger, lang_selector::current_locales, md_colored::md,
};
-use log::info;
+use log::{error, info};
use rust_i18n::{set_locale, t};
use tokio::fs::{self};
@@ -586,7 +586,7 @@ async fn jvv_service_listen(args: ListenArgs) {
info!(
"{}",
t!(
- "jvv.success.service.listen",
+ "jvv.success.service.listen_start",
path = match current_vault.file_name() {
Some(name) => name.to_string_lossy(),
None => std::borrow::Cow::Borrowed("unknown"),
@@ -595,5 +595,15 @@ async fn jvv_service_listen(args: ListenArgs) {
)
}
- let _ = server_entry(current_vault).await;
+ match server_entry(current_vault).await {
+ Ok(_) => {
+ info!("{}", t!("jvv.success.service.listen_done").trim());
+ }
+ Err(e) => {
+ error!(
+ "{}",
+ t!("jvv.fail.service.listen_done", error = e.to_string()).trim()
+ );
+ }
+ }
}