Skip to content

Commit

Permalink
Add extra --debug statement for failed "command -v"
Browse files Browse the repository at this point in the history
  • Loading branch information
oalders committed Aug 16, 2024
1 parent 6d4efed commit 24eaaa3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions there.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 24eaaa3

Please sign in to comment.