[FR] Improve messaging for basic bootstrap errors #16129
Unanswered
lindseydiloreto
asked this question in
Ideas
Replies: 1 comment 1 reply
-
Agree with this, with the caveat that if the message displayed is just The autoloader cannot be found then it isn't any more helpful than the current error that is displayed. So in other words, do it... but go with the latter part of @lindseydiloreto 's suggestion, with a verbose explanation of how to fix it and/or a link to a KB article that explains how to fix it. I will say that I think this is a general issue with Craft error messages/exceptions, something @michaelrog was working to improve with Canary: https://github.com/TopShelfCraft/Canary |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Craft's modern bootstrap file is great for its simplicity, but could probably benefit from some additional messaging when things aren't going smoothly. Currently, there is virtually no error handling in the bootstrap file. Basic errors are just barfed onto the screen when the system gets off to a rocky start.
If you've worked with Craft long enough, at some point you've seen this ugly error message...
Seasoned veterans will recognize this as "the
vendor
folder is missing" (or something similar). It's typically a cue to runcomposer install
orcomposer update
when setting up a project.But for newbies, it's very off-putting and confusing. The error message seems scarier than it really is, and often occurs when someone is unfamiliar with Craft and how it works.
In fact, the lack of proper error handling contributes to a long list of related issues from casual users...
I propose putting a few additional checks in the bootstrap logic to ensure that everything starts smoothly...
Even beyond the simple examples given above, the error messages could also:
I recommend that we "pave the footpaths" and give these users a smoother learning curve for getting comfortable with Craft.
Thanks, curious to hear your thoughts! 👍
Beta Was this translation helpful? Give feedback.
All reactions