Improve error message display when project fails to import
This commit is contained in:
parent
c0bf026ed8
commit
fa58a85ed0
1 changed files with 1 additions and 1 deletions
|
@ -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>")
|
||||
|
|
Loading…
Reference in a new issue