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

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


The following commit(s) were added to refs/heads/main by this push:
     new 9b144cff1 chore(cmd): error if no default catalog found
9b144cff1 is described below

commit 9b144cff173321b6f457cf315bb6fdfa6e102453
Author: Pasquale Congiusti <pasquale.congiu...@gmail.com>
AuthorDate: Mon Apr 29 12:16:45 2024 +0200

    chore(cmd): error if no default catalog found
---
 pkg/cmd/run.go | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/pkg/cmd/run.go b/pkg/cmd/run.go
index 8c89fa4be..54117ccc6 100644
--- a/pkg/cmd/run.go
+++ b/pkg/cmd/run.go
@@ -863,6 +863,9 @@ func (o *runCmdOptions) applyDependencies(cmd 
*cobra.Command, c client.Client, i
                                if err != nil {
                                        return err
                                }
+                               if catalog == nil {
+                                       return fmt.Errorf("error trying to load 
the default Camel catalog")
+                               }
                        }
                        addDependency(cmd, it, item, catalog)
                }

Reply via email to