mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-05 06:32:09 -07:00
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)
|
||||||
|
Reference in New Issue
Block a user