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<()> {
128128 asyncgit:: register_tracing_logging ( ) ;
129129
130130 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 ( ( ) ) ;
132133 }
133134
134135 let key_config = KeyConfig :: init ( )
@@ -318,7 +319,7 @@ fn draw(terminal: &mut Terminal, app: &App) -> io::Result<()> {
318319fn valid_path ( repo_path : & RepoPath ) -> bool {
319320 let error = asyncgit:: sync:: repo_open_error ( repo_path) ;
320321 if let Some ( error) = & error {
321- eprintln ! ( "repo open error: {error}" ) ;
322+ log :: error !( "repo open error: {error}" ) ;
322323 }
323324 error. is_none ( )
324325}
You can’t perform that action at this time.
0 commit comments