mirror of
https://github.com/gitui-org/gitui
synced 2026-05-24 01:18:21 +00:00
fix: returns 0 exit code on error (#1322)
This commit is contained in:
parent
ddf8c69253
commit
d1566861dd
1 changed files with 1 additions and 2 deletions
|
|
@ -112,8 +112,7 @@ fn main() -> Result<()> {
|
|||
asyncgit::register_tracing_logging();
|
||||
|
||||
if !valid_path(&cliargs.repo_path) {
|
||||
eprintln!("invalid path\nplease run gitui inside of a non-bare git repository");
|
||||
return Ok(());
|
||||
bail!("invalid path\nplease run gitui inside of a non-bare git repository");
|
||||
}
|
||||
|
||||
let key_config = KeyConfig::init()
|
||||
|
|
|
|||
Loading…
Reference in a new issue