From: Stas Vilchik Date: Wed, 23 Nov 2016 16:02:39 +0000 (+0100) Subject: show generic 404 page when a project is not found X-Git-Tag: 6.2-RC2~36 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9c2c0399220e5c3a07a8a63d7bec922fa1baf7d5;p=sonarqube.git show generic 404 page when a project is not found --- 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