adds errors to edits