I just started to learn start. and I'm trying to figure out how to handle errors, specifically validator and middleware ones. I don't want to have the whole error stack on the client;
const ContactForm = z.object({
name: z.string().min(2, 'Please enter a valid name'),
email: z.string().email('Please enter a valid email'),
message: z.string().min(10, 'Message must contain at least 10 characters')