1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-19 00:28:03 +02:00

Working new lines in live pty output

This commit is contained in:
mjarkk
2018-11-06 20:24:10 +01:00
parent cf1e9f79b1
commit ad77ac639e
2 changed files with 53 additions and 4 deletions

View File

@ -87,8 +87,9 @@ func (c *OSCommand) DetectUnamePass(command string, ask func(string) string) err
return ""
})
if err != nil {
if errorCode := err.Error(); strings.Contains("exit status 128", errorCode) {
errMessage = "exit status 128"
if strings.Contains("exit status 128", err.Error()) {
// errMessage = "exit status 128"
errMessage = errMessage
}
return errors.New(errMessage)
}