Improve reporting of SQL errors on the editing form.