summaryrefslogtreecommitdiffstats
path: root/pkg/gui/gui_driver.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2023-07-02 14:21:26 +1000
committerJesse Duffield <jessedduffield@gmail.com>2023-07-02 15:47:04 +1000
commitc9a917b83034bb657cb4cb0a73f4dd2124aac02a (patch)
treea9792a1d8cadd6c366ae6923016b675ac1cbcf50 /pkg/gui/gui_driver.go
parent4df353d0066173a6967d8e8ddd082791a053bbbc (diff)
Print entire panic message
For some reason, the panic message was being truncated. So here we're printing it first, and then calling panic
Diffstat (limited to 'pkg/gui/gui_driver.go')
-rw-r--r--pkg/gui/gui_driver.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/gui/gui_driver.go b/pkg/gui/gui_driver.go
index a90578b65..824c9ed33 100644
--- a/pkg/gui/gui_driver.go
+++ b/pkg/gui/gui_driver.go
@@ -2,6 +2,7 @@ package gui
import (
"fmt"
+ "os"
"strings"
"time"
@@ -70,7 +71,8 @@ func (self *GuiDriver) Fail(message string) {
self.gui.g.Close()
// need to give the gui time to close
time.Sleep(time.Millisecond * 100)
- panic(fullMessage)
+ fmt.Fprintln(os.Stderr, fullMessage)
+ panic("Test failed")
}
// logs to the normal place that you log to i.e. viewable with `lazygit --logs`