Skip to content

Commit

Permalink
fix(cli): Kamel CLI zero-code exists when trait properties validation…
Browse files Browse the repository at this point in the history
… fails
  • Loading branch information
astefanutti committed Jan 31, 2022
1 parent d1ce2cb commit 34bc81d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,7 @@ func (o *runCmdOptions) run(cmd *cobra.Command, args []string) error {
prefix = prefix[0:strings.Index(prefix, "[")]
}
if !util.StringSliceExists(tp, prefix) {
fmt.Printf("Error: %s is not a valid trait property\n", t)
return nil
return fmt.Errorf("%s is not a valid trait property", t)
}
}

Expand Down

0 comments on commit 34bc81d

Please sign in to comment.