Closed vladinator1000 closed 2 years ago
PR'd with some minor error handling improvements
Added handling for valid null-ish results in this PR. Added a check for other JSON parse errors. There's still a lot of room overall for improvements in error handling.
Sometimes when a query goes wrong I get an error that looks like
This turned out to be because I was calling something like this, which returns
null
Wonder if there is a way to better log errors to improve debugability? Or if we could do something to prevent
JSON.parse
being called on non-json results like this one?