This is an automated email from the ASF dual-hosted git repository. astefanutti pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit c74768345aa8615206aeff2d15d044078ccef03c Author: Antonin Stefanutti <[email protected]> AuthorDate: Mon Jan 10 12:53:04 2022 +0100 chore(jvm): Fail fast when no integration container is found --- pkg/trait/jvm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/trait/jvm.go b/pkg/trait/jvm.go index 306a068..200670b 100644 --- a/pkg/trait/jvm.go +++ b/pkg/trait/jvm.go @@ -137,7 +137,7 @@ func (t *jvmTrait) Apply(e *Environment) error { container := e.GetIntegrationContainer() if container == nil { - return nil + return fmt.Errorf("unable to find integration container") } // Build the container command
