Skip to content

Commit

Permalink
chore(cmd): error if no default catalog found
Browse files Browse the repository at this point in the history
  • Loading branch information
squakez committed Apr 29, 2024
1 parent 7e452d2 commit c4bfb0f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit c4bfb0f

Please sign in to comment.