From bd3f081f27d219f9bafbb00135918f315176f983 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Fri, 2 Aug 2024 16:40:19 +0100 Subject: feat(remote): improve warning copy so it is more concise and clear --- src/git_remote_helper.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/git_remote_helper.rs b/src/git_remote_helper.rs index 8417415..026c06b 100644 --- a/src/git_remote_helper.rs +++ b/src/git_remote_helper.rs @@ -235,7 +235,7 @@ async fn list( } Err(error) => { term.write_line( - format!("WARNING: failed to list refs git server in nostr events from {url} error: {error}").as_str(), + format!("WARNING: failed to list refs from {url} error: {error}").as_str(), )?; } } @@ -248,15 +248,13 @@ async fn list( if let Some(remote_value) = remote_state.get(name) { if value.ne(remote_value) { term.write_line( - format!( - "WARNING: git server {url} is out of sync with nostr for {name}" - ) - .as_str(), + format!("WARNING: {name} out of sync with nostr on {url}").as_str(), )?; } } else { term.write_line( - format!("WARNING: git server {url} is out of sync with nostr. it is missing {name}. if you are a maintainer consider pushing it.").as_str(), + format!("WARNING: {name} is missing from {url} but tracked on nostr") + .as_str(), )?; } } -- cgit v1.2.3