Skip to content

feat: Prismaのエラーを適切にラップする #656

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
laminne opened this issue Aug 18, 2024 · 1 comment
Open

feat: Prismaのエラーを適切にラップする #656

laminne opened this issue Aug 18, 2024 · 1 comment
Labels
P: low T: improvement Improvement of functions, etc.

Comments

@laminne
Copy link
Member

laminne commented Aug 18, 2024

概要

related: #615 , #502

  • Prismaが出力するエラーを適切な形式(今の状態だとどのようなエラーなのかの判別ができないので)にラップしたい
@laminne
Copy link
Member Author

laminne commented Nov 30, 2024

Prismaの更新や削除などの関数呼び出しはtry-catchで包まれているのでエラーを正しく補足して変換、ログ出力が可能
取得系は包まれていないので例外としてhonoのエラーキャッチに引っかかっていてログ出力ができない問題が発生中

今書かれている取得系の関数呼び出しで起こる例外(dbへの接続エラー)をキャッチしてログ出力ができるようにする必要がありそう

@laminne laminne moved this from Backlog to Todo in Pulsate v0.1 Jan 18, 2025
@laminne laminne added the P: low label Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P: low T: improvement Improvement of functions, etc.
Projects
Status: Todo
Development

No branches or pull requests

1 participant