This is an automated email from the ASF dual-hosted git repository.

astefanutti pushed a commit to branch release-1.7.x
in repository https://gitbox.apache.org/repos/asf/camel-k.git

commit b299b435b916a2fb529392d73b2151defc7b5567
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 09413b0..f697993 100644
--- a/pkg/trait/jvm.go
+++ b/pkg/trait/jvm.go
@@ -136,7 +136,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

Reply via email to