astefanutti commented on a change in pull request #472: fix(traints): ensure an error is returned to the caller if a catalog cannot be found URL: https://github.com/apache/camel-k/pull/472#discussion_r258560316
########## File path: pkg/trait/camel.go ########## @@ -51,6 +55,9 @@ func (t *camelTrait) Apply(e *Environment) error { if err != nil { return err } + if c == nil { + return fmt.Errorf("unable to find catalgo for: %s", version) Review comment: nit: typo ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services