Show error message when failed to start preview command (#1810)

Fix #1637
This commit is contained in:
Tony Metzidis
2020-01-19 02:42:10 -08:00
committed by Junegunn Choi
parent f7b26b34cb
commit f246fb2fc2
3 changed files with 7 additions and 2 deletions

View File

@@ -1576,7 +1576,10 @@ func (t *Terminal) Loop() {
var out bytes.Buffer
cmd.Stdout = &out
cmd.Stderr = &out
cmd.Start()
err := cmd.Start()
if err != nil {
out.Write([]byte(err.Error()))
}
finishChan := make(chan bool, 1)
updateChan := make(chan bool)
go func() {