extracts reused render_errors() in CrudModule