diff options
Diffstat (limited to 'src/bin/git_remote_nostr/main.rs')
| -rw-r--r-- | src/bin/git_remote_nostr/main.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bin/git_remote_nostr/main.rs b/src/bin/git_remote_nostr/main.rs index 3663d5b..41164fe 100644 --- a/src/bin/git_remote_nostr/main.rs +++ b/src/bin/git_remote_nostr/main.rs | |||
| @@ -167,6 +167,7 @@ async fn fetching_with_report_for_helper( | |||
| 167 | &HashSet::new(), | 167 | &HashSet::new(), |
| 168 | ) | 168 | ) |
| 169 | .await?; | 169 | .await?; |
| 170 | let has_errors = relay_reports.iter().any(std::result::Result::is_err); | ||
| 170 | let report = consolidate_fetch_reports(relay_reports); | 171 | let report = consolidate_fetch_reports(relay_reports); |
| 171 | if report.to_string().is_empty() { | 172 | if report.to_string().is_empty() { |
| 172 | if verbose { | 173 | if verbose { |
| @@ -175,6 +176,8 @@ async fn fetching_with_report_for_helper( | |||
| 175 | } else { | 176 | } else { |
| 176 | term.write_line(&format!("nostr updates: {report}"))?; | 177 | term.write_line(&format!("nostr updates: {report}"))?; |
| 177 | } | 178 | } |
| 178 | let _ = progress_reporter.clear(); | 179 | if !has_errors || verbose { |
| 180 | let _ = progress_reporter.clear(); | ||
| 181 | } | ||
| 179 | Ok(()) | 182 | Ok(()) |
| 180 | } | 183 | } |