1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-11-29 22:48:24 +02:00

don't quit integration test tui upon error

This commit is contained in:
Jesse Duffield
2022-08-22 18:51:34 +10:00
parent 47f84b6aea
commit 79620fc6cf
2 changed files with 8 additions and 2 deletions

View File

@@ -380,3 +380,9 @@ func runTuiTest(test *components.IntegrationTest, mode components.Mode, keyPress
log.Println(err.Error())
}
}
func runAndPrintError(test *components.IntegrationTest, f func() error) {
if err := f(); err != nil {
log.Println(err.Error())
}
}