]> source.dussan.org Git - sonarqube.git/commitdiff
show generic 404 page when a project is not found
authorStas Vilchik <vilchiks@gmail.com>
Wed, 23 Nov 2016 16:02:39 +0000 (17:02 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Wed, 23 Nov 2016 16:02:39 +0000 (17:02 +0100)
server/sonar-web/src/main/webapp/WEB-INF/app/controllers/dashboard_controller.rb

index de4577c911048f0683e858790039ab88e0920e42..5d9e1d37613f552ae5cc193ff55e3021aae72250 100644 (file)
@@ -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