From 24eaaa3ebc8fde853d4f3c7ffa5a72c663ace178 Mon Sep 17 00:00:00 2001 From: Olaf Alders Date: Fri, 16 Aug 2024 07:08:42 -0400 Subject: [PATCH] Add extra --debug statement for failed "command -v" --- there.go | 1 + 1 file changed, 1 insertion(+) diff --git a/there.go b/there.go index e6308dc..5872daa 100644 --- a/there.go +++ b/there.go @@ -20,6 +20,7 @@ func (r *ThereCmd) Run(ctx *types.Context) error { err := cmd.Run() if err != nil { if ctx.Debug { + log.Printf("Error was: %v\n", err) log.Printf("Running \"which %s\"\n", r.Name) } cmd := exec.Command("which", r.Name) //nolint:gosec