graphula icon indicating copy to clipboard operation
graphula copied to clipboard

Provide more transparent errors for generation failure

Open eborden opened this issue 8 years ago • 0 comments

Currently Insert returns Maybe a. Nothing is coded for constraint failure, which triggers retry. If retry fails we throw a generation error. This error is opaque and does not provide any information for the user. We should be returning an Either _ a, so we can either pass the resulting exception or generate useful information for the user. This could be as simple as Either Text a or Either SomeException a.

eborden avatar Jul 10 '17 22:07 eborden