Improve the display of errors when editing records.