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

[5.x] Improve starter kit installer error handling #11281

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

jesseleite
Copy link
Member

@jesseleite jesseleite commented Dec 18, 2024

If github oauth fails, then this error output never shows, because removeStarterKit() ends up erroring.

This PR just moves error output to the start of rollbackWithError(), to ensure it always outputs nicely, no matter what.

For example, studio1902/statamic-peak#408 had an installation issue related to github oauth, but this wasn't obvious. Now the user should see this...

Composer could not authenticate with GitHub!
Please generate a personal access token at: https://github.com/settings/tokens/new

@jasonvarga jasonvarga merged commit cb40a70 into 5.x Dec 18, 2024
21 checks passed
@jasonvarga jasonvarga deleted the improve-starter-kit-error-handling branch December 18, 2024 17:17
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