Use RAGENT.add_error in common cases.