Skip to content

Commit

Permalink
Add more debugging to run.go
Browse files Browse the repository at this point in the history
  • Loading branch information
oalders committed May 28, 2023
1 parent 19ab4ca commit 56538f4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions run.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,17 @@ func (r *CommandCmd) Run(ctx *Context, info *meta) error {

got, err := version.NewVersion(output)
if err != nil {
// fmt.Printf("Could not parse %s %v", output, err)
if ctx.Debug {
fmt.Printf("Could not parse %s %v", output, err)
}
return err
}

want, err := version.NewVersion(r.Name.Val)
if err != nil {
// fmt.Printf("Could not parse %s %v", wantArg, err)
if ctx.Debug {
fmt.Printf("Could not parse %s %v", r.Name.Val, err)
}
return err
}

Expand Down

0 comments on commit 56538f4

Please sign in to comment.