-
Notifications
You must be signed in to change notification settings - Fork 56
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
Bad error messages with singleRow #72
Comments
What kind of error message would you expect in such case? |
Something along the lines: Expected one row, but got an empty result? |
Just hit the same issue, but luckily a web search brought me here. Couldn't wrap my head around the fact that |
PR welcome :) |
Also hit the same issue, but using I don't really feel confident that I'd be able to contribute to |
@gfarrell Would you like to pair over a discord call or something? I'm also interested in improving this error message |
@mitchellwrosen for a few reasons I'm probably abandoning Hasql in favour of Persistent so I probably won't be working on this, sorry! |
Hehe, no worries! (But also, you should use hasql ;)) |
If a query does not return anything (i.E. a plain
INSERT
), and I use theD.singleRow
decoder, I get the following error:That's not helpful :-( Is there any way to improve this? I think we would only need to change
so that one can provide a custom error message there and use that in the
single
function?The text was updated successfully, but these errors were encountered: