Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(traints): ensure an error is returned to the caller if a catalog cannot be found #472

Merged
merged 1 commit into from
Feb 21, 2019

Conversation

lburgazzoli
Copy link
Contributor

No description provided.

@@ -51,6 +55,9 @@ func (t *camelTrait) Apply(e *Environment) error {
if err != nil {
return err
}
if c == nil {
return fmt.Errorf("unable to find catalgo for: %s", version)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: typo

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@@ -70,6 +77,9 @@ func (t *camelTrait) Apply(e *Environment) error {
if err != nil {
return err
}
if c == nil {
return fmt.Errorf("unable to find catalgo for: %s", version)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: typo

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Member

@astefanutti astefanutti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit continued: you can fix the typo in the commit message ;)

@lburgazzoli lburgazzoli merged commit 580794d into apache:master Feb 21, 2019
@lburgazzoli lburgazzoli deleted the catalog-panic branch February 21, 2019 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants