SQL query errors can now be propagated to Lua scripts. This is a prerequisite for custom error hooks.