How to handle Errors in catch? - TanStack