mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-27 00:51:18 +02:00
Print entire panic message
For some reason, the panic message was being truncated. So here we're printing it first, and then calling panic
This commit is contained in:
@ -2,6 +2,7 @@ package gui
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@ -70,7 +71,8 @@ func (self *GuiDriver) Fail(message string) {
|
|||||||
self.gui.g.Close()
|
self.gui.g.Close()
|
||||||
// need to give the gui time to close
|
// need to give the gui time to close
|
||||||
time.Sleep(time.Millisecond * 100)
|
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`
|
// logs to the normal place that you log to i.e. viewable with `lazygit --logs`
|
||||||
|
Reference in New Issue
Block a user