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 <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) }