documents add_error