Skip to content

Commit c9d5127

Browse files
committed
better error message
1 parent d8b82ff commit c9d5127

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ func cmdEdit(c *cli.Context) error {
371371
cmd.Stdin = strings.NewReader(strings.Join(files, "\n"))
372372
b, err := cmd.CombinedOutput()
373373
if err != nil {
374-
return fmt.Errorf("cannot run %q: %v: you need to install peco first: https://github.com/peco/peco", cfg.SelectCmd, err)
374+
return fmt.Errorf("%v: you need to install peco first: https://github.com/peco/peco", err)
375375
}
376376
files = strings.Split(strings.TrimSpace(string(b)), "\n")
377377
for i, file := range files {

0 commit comments

Comments
 (0)