fix: log an accidentally ignored error
This commit is contained in:
parent
68cedcea0c
commit
1d9de528ed
1 changed files with 3 additions and 1 deletions
4
main.go
4
main.go
|
@ -67,7 +67,9 @@ func main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// serve selection to the OS
|
// 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":
|
case "clear":
|
||||||
histfile, history, err := getHistory(*histpath)
|
histfile, history, err := getHistory(*histpath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue