I've often wished that the "Query did not produce any tuples" error message were more descriptive, so I changed it to return the postgres error message. One-line patch attached. Regards, Mitch