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

@@ -241,7 +241,7 @@ func (r *LightRenderer) getBytesInternal(buffer []byte) []byte {
c, ok := r.getch(false)
if !ok {
r.Close()
errorExit()
errorExit("Failed to read /dev/tty")
}
retries := 0