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

improve hotel installer error message #34

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

jay-aye-see-kay
Copy link
Contributor

@jay-aye-see-kay jay-aye-see-kay commented Aug 1, 2024

Context

This issue has come up a couple times, it's confusing at best, looks broken, so time to fix it.

Cause and solution

Previously curl had --fail so it would fail on non-200 responses but the script would exit before we could do anything helpful (because set -e). So now we're splitting the output of curl to get both the http code and response body, this allows us to print a better error message

Manual testing

Uninstalled hotel, then tried reinstalling with a bad token, then with a good token. Works as expected, as can be seen below.

Screenshot 2024-08-01 at 2 28 39 PM

@burritobill burritobill merged commit 4338302 into main Aug 1, 2024
8 checks passed
@burritobill burritobill deleted the jdr/improve-hotel-install-error-message branch August 1, 2024 04:41
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.

2 participants