Error handling in query functions - Convex Community