Request for clearer error troubleshooting since introduction of TwillCapsules #2158
Unanswered
adam-jones-net
asked this question in
Q&A
Replies: 1 comment
-
This happens mainly because the capsule check is the last one in the list. I will check what we can do about this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've come to realise as I've duplicated some of my modules in a project recently that twill often throws up rather unhelpful errors due to exceptions easily occurring in the TwillCapsules.php file.
I will give you three examples of different errors on my part that all resulted with the exception occurring in this file, which was really misleading as I'm not using Capsules in this project, so the exception resulted in me hunting around a lot of things that turned out to not bare much relevance on the actual issue.
I just setup a new module and ended up with a /app/Repositories file that had the wrong file name. As a result I got the following error:
I got the same error if I set a request file named incorrectly in the /Http/Requests/Admin/ folder.
Also the same error occurs if the file was named correctly but the class name declared in the file had a typo.
I don't have a solution to this but I hope you can see that these unhandled exceptions, that admittedly occurred due to random user error are quite hard to debug. Hoping there is a way to make this clearer in the future.
Beta Was this translation helpful? Give feedback.
All reactions