Help with Effect Error Handling
Hi everyone! I'm working on learning effect and creating a basic todo app (classic first project!). I'm using SqliteDrizzle for my database, but I'm struggling with error handling.
The current pattern works, but it's leaving out important details from the error. For example, my
But the original error contains much more useful information:
How can I create a better error mapping or in general handle the error but still get all the details from it? I'd like to be able to see the full error chain, especially the specific SQLite error (like "FOREIGN KEY constraint failed" in this case).
Code in comments since the discord post is too long.
Thanks in advance for any help!
Current Issue
The current pattern works, but it's leaving out important details from the error. For example, my
tapErrorCause only prints out this error:But the original error contains much more useful information:
My Question
How can I create a better error mapping or in general handle the error but still get all the details from it? I'd like to be able to see the full error chain, especially the specific SQLite error (like "FOREIGN KEY constraint failed" in this case).
Code in comments since the discord post is too long.
Thanks in advance for any help!
