summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index d8536819..f32813da 100644
--- a/main.go
+++ b/main.go
@@ -39,7 +39,7 @@ func printScript(label string, content []byte) {
}
func exit(code int, err error) {
- if code == fzf.ExitError {
+ if code == fzf.ExitError && err != nil {
fmt.Fprintln(os.Stderr, err.Error())
}
os.Exit(code)