diff options
author | extrawurst <mail@rusticorn.com> | 2023-08-10 15:39:39 +0200 |
---|---|---|
committer | extrawurst <mail@rusticorn.com> | 2023-08-10 15:39:39 +0200 |
commit | 7400d5bc6883eff7528baa1a50bad4a2a3c4d69d (patch) | |
tree | b71ea82db583fd14a695afaa99fa3c2a29509ba0 /src/main.rs | |
parent | 53988ba4e0c07bc053a50f8a48bbd099a199fee2 (diff) |
more logging/diagnostics when repo cant be opened
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 6 |
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( |