mirror of
https://github.com/junegunn/fzf
synced 2024-11-14 18:12:53 +00:00
parent
b2ecb6352c
commit
94c33ac020
2
main.go
2
main.go
@ -39,7 +39,7 @@ func printScript(label string, content []byte) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func exit(code int, err error) {
|
func exit(code int, err error) {
|
||||||
if code == fzf.ExitError {
|
if code == fzf.ExitError && err != nil {
|
||||||
fmt.Fprintln(os.Stderr, err.Error())
|
fmt.Fprintln(os.Stderr, err.Error())
|
||||||
}
|
}
|
||||||
os.Exit(code)
|
os.Exit(code)
|
||||||
|
Loading…
Reference in New Issue
Block a user