You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Doing a review of what I left hanging the last few times I made passes on the Platform code. One thing sticks out to me because it may actually help troubleshoot a thing or two on staging.
So historically the Platform kind of works as an API even when you're using requests locally. One of the biggest things that is a huge impediment in terms of development and troubleshooting is the lack of verbosity in errors.
There was no way originally to pass an actual error message and define the error code (404, 405, 500, etc), so at some point I setup a little method chaining facade that does that.
It would be a huge undertaking to put these verbose error messages everywhere out the gate, but I'm thinking: why not work them into places in the platform we're currently trying to troubleshoot on staging?
It's a pretty simple and non-glamorous thing out the gate; it's essentially changing spots in the Plant classes that return false with a more verbose sort of error, like
Doing a review of what I left hanging the last few times I made passes on the Platform code. One thing sticks out to me because it may actually help troubleshoot a thing or two on staging.
So historically the Platform kind of works as an API even when you're using requests locally. One of the biggest things that is a huge impediment in terms of development and troubleshooting is the lack of verbosity in errors.
There was no way originally to pass an actual error message and define the error code (404, 405, 500, etc), so at some point I setup a little method chaining facade that does that.
It would be a huge undertaking to put these verbose error messages everywhere out the gate, but I'm thinking: why not work them into places in the platform we're currently trying to troubleshoot on staging?
It's a pretty simple and non-glamorous thing out the gate; it's essentially changing spots in the Plant classes that
return false
with a more verbose sort of error, likereturn $this->error('404')->message("No subscription plans found.");
I only really put together the functionality and cascade down to the API response, I haven't had time to really start putting these in place though.
The text was updated successfully, but these errors were encountered: