You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Currently
Insert
returnsMaybe 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 anEither _ a
, so we can either pass the resulting exception or generate useful information for the user. This could be as simple asEither Text a
orEither SomeException a
.The text was updated successfully, but these errors were encountered: