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 7c76bef0..1e05345c 100644
--- a/main.go
+++ b/main.go
@@ -35,7 +35,7 @@ func printScript(label string, content []byte) {
}
func exit(code int, err error) {
- if err != nil {
+ if code == fzf.ExitError {
fmt.Fprintln(os.Stderr, err.Error())
}
os.Exit(code)