Add error logging/monitoring to failing queries

Hey @Chris-Thompson, I solved it by doing this in the end