m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-18 00:03: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

@@ -1,6 +1,7 @@
package tui
import (
"fmt"
"os"
"strconv"
"time"
@@ -284,7 +285,8 @@ func EmptyTheme() *ColorTheme {
Border: colUndefined}
}
func errorExit() {
func errorExit(message string) {
fmt.Fprintln(os.Stderr, message)
os.Exit(2)
}