diff --git a/functions/lib/handle-error/handle-error.ts b/functions/lib/handle-error/handle-error.ts index 05cdef70..5945fc1a 100644 --- a/functions/lib/handle-error/handle-error.ts +++ b/functions/lib/handle-error/handle-error.ts @@ -17,6 +17,8 @@ const reportErrorToTelegram = (error: unknown, env: unknown) => { message: (error as Error)?.message, name: (error as Error)?.name, stack: (error as Error)?.stack, + isDatabaseException: error && error instanceof DatabaseException, + isZodError: error && error instanceof ZodError, ...Object.getOwnPropertyNames(error), }