diff options
author | James Lopez <james@jameslopez.es> | 2016-07-07 15:34:45 +0200 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-07-07 15:34:45 +0200 |
commit | dad8fc242c646161b353b5f65ab830ea689ff99e (patch) | |
tree | d7f4b078ee115c47e34c72fd8032486be264aada /app/controllers | |
parent | 3c89a788c795fba2b050a0af0d8261e302d8cded (diff) | |
download | gitlab-ce-dad8fc242c646161b353b5f65ab830ea689ff99e.tar.gz |
fix 404 error, redirect back with flash message
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/import/gitlab_projects_controller.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/app/controllers/import/gitlab_projects_controller.rb b/app/controllers/import/gitlab_projects_controller.rb index 513348c39af..30df1fb2fec 100644 --- a/app/controllers/import/gitlab_projects_controller.rb +++ b/app/controllers/import/gitlab_projects_controller.rb @@ -27,10 +27,7 @@ class Import::GitlabProjectsController < Import::BaseController notice: "Project '#{@project.name}' is being imported." ) else - redirect_to( - new_import_gitlab_project_path, - alert: "Project could not be imported: #{@project.errors.full_messages.join(', ')}" - ) + redirect_back_or_default(options: { alert: "Project could not be imported: #{@project.errors.full_messages.join(', ')}" }) end end |