Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
Signed-off-by: Patrik Cyvoct <[email protected]>
  • Loading branch information
Sh4d1 committed Mar 11, 2020
1 parent 962c7d6 commit 6debbd7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/core/validate.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package core

import (
"fmt"
"reflect"
"strings"

Expand Down Expand Up @@ -65,8 +66,8 @@ func validateRequiredArgs(cmd *Command, cmdArgs interface{}) error {
if err != nil {
validationErr := fmt.Errorf("could not validate arg value for '%v': invalid field name '%v': %v", arg.Name, fieldName, err.Error())
if !arg.Required {
logger.Infof(validationErr.Error())
continue
logger.Infof(validationErr.Error())
continue
}
panic(validationErr)
}
Expand Down

0 comments on commit 6debbd7

Please sign in to comment.