m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-17 07:43:39 -05:00

Print error message to stderr on unexpected exit

This commit is contained in:
Junegunn Choi
2017-01-11 23:01:56 +09:00
parent 2aa739be81
commit d64828ce6d
4 changed files with 9 additions and 15 deletions

View File

@@ -6,9 +6,6 @@ import (
"time"
"unicode/utf8"
"fmt"
"os"
"runtime"
// https://github.com/gdamore/tcell/pull/135
@@ -123,12 +120,10 @@ var (
func (r *FullscreenRenderer) initScreen() {
s, e := tcell.NewScreen()
if e != nil {
fmt.Fprintf(os.Stderr, "%v\n", e)
errorExit()
errorExit(e.Error())
}
if e = s.Init(); e != nil {
fmt.Fprintf(os.Stderr, "%v\n", e)
errorExit()
errorExit(e.Error())
}
if r.mouse {
s.EnableMouse()