fix(history): logic for store_failed=false (#2284)

* chore: ignore .envrc

* fix(history): Check passed exit param instead of not-yet set h.exit
This commit is contained in:
Jeff Gould 2024-07-17 07:22:53 -07:00 committed by GitHub
parent 06c8ebd310
commit 62f3807dcb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -6,6 +6,7 @@
.vscode/ .vscode/
result result
publish.sh publish.sh
.envrc
ui/backend/target ui/backend/target
ui/backend/gen ui/backend/gen

View File

@ -384,7 +384,7 @@ impl Cmd {
return Ok(()); return Ok(());
} }
if !settings.store_failed && h.exit != 0 { if !settings.store_failed && exit > 0 {
debug!("history has non-zero exit code, and store_failed is false"); debug!("history has non-zero exit code, and store_failed is false");
// the history has already been inserted half complete. remove it // the history has already been inserted half complete. remove it