Improve error message display when project fails to import

This commit is contained in:
Stan Hu 2015-08-11 06:36:42 -07:00
parent c0bf026ed8
commit fa58a85ed0

View file

@ -26,4 +26,4 @@
- else
:plain
job = $("tr#repo_#{@repo_id}")
job.find(".import-actions").html("<p class='alert alert-danger'>Error saving project: #{escape_javascript(@project.errors.messages.to_s)}</p>")
job.find(".import-actions").html("<i class='fa fa-exclamation-circle'> Error saving project: #{escape_javascript(@project.errors.full_messages.join(','))}</i>")