How to design debuggable errors when working with tryCatch
blocks?
#1884
Unanswered
volkanunsal
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all. I'm wondering how you design error messages that make it easier to debug a piped async computation, especially when the error could be coming from several functions. For example, I have the following function:
In this example, the computation may return a
Left
from eitherdeleteRecordFromTable
orensurePermissionToDelete
. When I see an error message from here, I can search for it in the codebase, and if it's one of my own error messages, it's not a problem, but sometimes an error comes from atryCatch
block and that can be frustrating to debug.I'm looking for any kind of general advice on best practices for writing error messages within chained computations so that it becomes easier to debug them.
Beta Was this translation helpful? Give feedback.
All reactions