org-babel-execute-src-block has a big unwind-protect that basically eats all errors inside it. I don't think it used to do that. It makes it hard to debug my sql code since I can't figure out where the actual problem is.
In my case, I'm probably returning no result from some query, and ob-sql is mis-parsing that; but due to the unwind-protect it doesn't give me a stack dump or anything useful, just a "Beginning of buffer" message in *Messages*. And it makes setting debug-on-error not work too. I'm considering replacing/augmenting that stanza with a condition-case. What do folks here think? Is there a better way? -- Gary