From 28b89043d36e7d376d992cadbc17f70124bfce10 Mon Sep 17 00:00:00 2001 From: Pasquale Congiusti Date: Mon, 29 Apr 2024 12:16:45 +0200 Subject: [PATCH] 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 8c89fa4be7..54117ccc6f 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) }