summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorextrawurst <mail@rusticorn.com>2023-08-10 15:39:39 +0200
committerextrawurst <mail@rusticorn.com>2023-08-10 15:39:39 +0200
commit7400d5bc6883eff7528baa1a50bad4a2a3c4d69d (patch)
treeb71ea82db583fd14a695afaa99fa3c2a29509ba0 /src/main.rs
parent53988ba4e0c07bc053a50f8a48bbd099a199fee2 (diff)
more logging/diagnostics when repo cant be opened
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 6cab1fa0..3a3a7454 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -323,7 +323,11 @@ fn draw<B: Backend>(
}
fn valid_path(repo_path: &RepoPath) -> bool {
- asyncgit::sync::is_repo(repo_path)
+ let error = asyncgit::sync::repo_open_error(repo_path);
+ if let Some(error) = &error {
+ eprintln!("repo open error: {error}");
+ }
+ error.is_none()
}
fn select_event(