Skip to content

Commit

Permalink
More detailed error
Browse files Browse the repository at this point in the history
  • Loading branch information
kubk committed Nov 2, 2023
1 parent 9d04b27 commit 0d76e2b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions functions/lib/handle-error/handle-error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}

Expand Down

0 comments on commit 0d76e2b

Please sign in to comment.