<%= sync.error_message.html_safe %>
<% if current_user.admin? %>
<% if sync.full_error_message.present? %>
<%= sync.full_error_message.html_safe %>
<% end %>
<% worker_batch = sync.worker_batch %>
<% if worker_batch.present? %>
<% worker_states = worker_batch.worker_states.by_status(ApiSynchronizationStatus::ERROR) %>
<% worker_states.each do |worker_state| %>
<% worker_state.error_list.each do |error| %>
<%= error %>
<% end %>
<% end %>
<% end %>
<% end %>