Pods SQL Error handling – how to
-
Hi,
I am wondering if you can point me in the right direction.
While working with $pod->fetch I received a WordPress Database Error, displayed on the front end of my site. No big issue, a small syntax error in my SQL statement that I have fixed.
My question is how do I handle such errors from displaying the SQL query to the site user?
I would like to implement some error handling if the fetch command fails. Can I implement a TRY, FAIL block, use IS_WP_ERROR or does PODS have it’s own error handling for the FETCH command?I have tried researching this but can’t find any guidelines as to which way to go. Would greatly appreciate some guidance.
Thanks in advance.
- The topic ‘Pods SQL Error handling – how to’ is closed to new replies.