How to log error from react query? - TanStack