You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pc...@apache.org on 2024/04/29 14:38:05 UTC

(camel-k) branch release-2.3.x updated: chore(cmd): error if no default catalog found

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

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


The following commit(s) were added to refs/heads/release-2.3.x by this push:
     new c4bfb0fbe chore(cmd): error if no default catalog found
c4bfb0fbe is described below

commit c4bfb0fbe5bfffdb90d291a163e627fc06d490cf
Author: Pasquale Congiusti <pa...@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)
 		}