godotengine / godot-asset-library

PHP frontend for Godot Engine's asset library
https://godotengine.org/asset-library
MIT License
292 stars 94 forks source link

Revert JSON flag, added actual error messages to DB calls #318

Closed Gramps closed 7 months ago

Gramps commented 7 months ago

This PR will revert the change from the previous one; though I don't think it would hurt anything. This also adds more specific error messages to errorResponseIfQueryBad as it currently returns the same message for six different instances which doesn't help differentiate where the error happens.

I originally assumed PHP was providing some kind of log entry for this error but it does not seem to based on what Emi found; makes this significantly harder to track down without specific message for each instance.