From 1d9de528ed5dbf2badcd048a75916856c2746668 Mon Sep 17 00:00:00 2001 From: yory8 <> Date: Tue, 17 Sep 2019 11:03:37 +0200 Subject: [PATCH] fix: log an accidentally ignored error --- main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 833f410..9738b65 100644 --- a/main.go +++ b/main.go @@ -67,7 +67,9 @@ func main() { } // serve selection to the OS - err = exec.Command("wl-copy", []string{"--", selection}...).Run() + if err := exec.Command("wl-copy", []string{"--", selection}...).Run(); err != nil { + log.Fatal(err) + } case "clear": histfile, history, err := getHistory(*histpath) if err != nil {