File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,8 @@ fn main() -> Result<()> {
128
128
asyncgit:: register_tracing_logging ( ) ;
129
129
130
130
if !valid_path ( & cliargs. repo_path ) {
131
- bail ! ( "invalid path\n please run gitui inside of a non-bare git repository" ) ;
131
+ eprintln ! ( "invalid path\n please run gitui inside of a non-bare git repository" ) ;
132
+ return Ok ( ( ) ) ;
132
133
}
133
134
134
135
let key_config = KeyConfig :: init ( )
@@ -318,7 +319,7 @@ fn draw(terminal: &mut Terminal, app: &App) -> io::Result<()> {
318
319
fn valid_path ( repo_path : & RepoPath ) -> bool {
319
320
let error = asyncgit:: sync:: repo_open_error ( repo_path) ;
320
321
if let Some ( error) = & error {
321
- eprintln ! ( "repo open error: {error}" ) ;
322
+ log :: error !( "repo open error: {error}" ) ;
322
323
}
323
324
error. is_none ( )
324
325
}
You can’t perform that action at this time.
0 commit comments