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

lburgazzoli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git

commit 0cf1d601ee85a9ebf356562a22cef45b46f848e7
Author: nferraro <[email protected]>
AuthorDate: Fri Oct 5 00:04:15 2018 +0200

    Fix error handling in trait command line config
---
 pkg/client/cmd/run.go | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/pkg/client/cmd/run.go b/pkg/client/cmd/run.go
index afd9667..30f6fa8 100644
--- a/pkg/client/cmd/run.go
+++ b/pkg/client/cmd/run.go
@@ -326,7 +326,9 @@ func (o *runCmdOptions) updateIntegrationCode(filename 
string) (*v1alpha1.Integr
        }
 
        for _, traitConf := range o.Traits {
-               o.configureTrait(&integration, traitConf)
+               if err := o.configureTrait(&integration, traitConf); err != nil 
{
+                       return nil, err
+               }
        }
 
        existed := false

Reply via email to