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 error messaging in hs cms convert-fields #1139

Merged
merged 2 commits into from
Aug 21, 2024

Conversation

camden11
Copy link
Contributor

Description and Context

See https://git.hubteam.com/HubSpot/hubspot-cli-issues/issues/630
We noticed during our CLI bug bash that not providing the --src flag to hs cms conver-fields leads to a misleading error message. I also noticed that providing an invalid src results in a missing translation and even worse error message. This fixes both of those things

Screenshots

No --src before
Screenshot 2024-08-21 at 12 16 07 PM

No --src after
Screenshot 2024-08-21 at 12 16 25 PM

Invalid --src before
Screenshot 2024-08-21 at 12 21 02 PM

Invalid --src after
Screenshot 2024-08-21 at 12 25 06 PM

Who to Notify

@brandenrodgers @joe-yeager @TanyaScales

@brandenrodgers
Copy link
Contributor

Nice! 🎉 this lgtm, but I'll defer to @TanyaScales for the final approve

@camden11 camden11 requested a review from TanyaScales August 21, 2024 18:37
Copy link
Member

@TanyaScales TanyaScales left a comment

Choose a reason for hiding this comment

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

LGTM - Thanks!

@camden11 camden11 merged commit e213085 into main Aug 21, 2024
1 check passed
@camden11 camden11 deleted the update-convert-fields-error branch August 21, 2024 20:08
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.

3 participants