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 accessory name checking that is passing to command kamal accessory #502

Merged
merged 1 commit into from
Mar 26, 2024

Conversation

latyshev
Copy link
Contributor

@latyshev latyshev commented Sep 26, 2023

This PR resolves #303 when wrong accessory name is passing to the kamal accessory.

@latyshev latyshev changed the title Fix accessory name check passing to kamal accessory Fix accessory name checking that is passing to command kamal accessory Sep 26, 2023
@igor-alexandrov
Copy link
Contributor

This looks good to me, but please update tests accordingly.

else
error_on_missing_accessory(name)
raise ArgumentError, error_on_missing_accessory(name)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why did you decide to raise ArgumentError instead of using Thor#error method?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reverted it back.

@igor-alexandrov
Copy link
Contributor

@djmb I think, this can be merged.

@djmb djmb merged commit 786454f into basecamp:main Mar 26, 2024
8 checks passed
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.

Bad error when accessory cli is entered wrong
3 participants