diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2016-11-23 17:02:39 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2016-11-23 17:02:39 +0100 |
commit | 9c2c0399220e5c3a07a8a63d7bec922fa1baf7d5 (patch) | |
tree | 6991fc1ac1f5d819352e8d41c8a643f30fff48cf /server | |
parent | 34b474729839cf7ff92fe29b3b3d19922efedc2f (diff) | |
download | sonarqube-9c2c0399220e5c3a07a8a63d7bec922fa1baf7d5.tar.gz sonarqube-9c2c0399220e5c3a07a8a63d7bec922fa1baf7d5.zip |
show generic 404 page when a project is not found
Diffstat (limited to 'server')
-rw-r--r-- | server/sonar-web/src/main/webapp/WEB-INF/app/controllers/dashboard_controller.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/dashboard_controller.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/dashboard_controller.rb index de4577c9110..5d9e1d37613 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/dashboard_controller.rb +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/dashboard_controller.rb @@ -56,8 +56,7 @@ class DashboardController < ApplicationController private def project_not_found - flash[:error] = message('dashboard.project_not_found') - redirect_to :action => :index + raise ActionController::RoutingError.new('Not Found') end def project_not_analyzed |