From 7d0b1b383009dddb535e288f8cbf38b1aa8fb2aa Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 14 Jan 2011 20:22:36 +0000 Subject: Respond with 404 instead of 500 when revision/entry is not found in the repository (#7307). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4710 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/repositories_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers') diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb index 3e4584ead..72104d575 100644 --- a/app/controllers/repositories_controller.rb +++ b/app/controllers/repositories_controller.rb @@ -226,7 +226,7 @@ class RepositoriesController < ApplicationController end def show_error_not_found - render_error l(:error_scm_not_found) + render_error :message => l(:error_scm_not_found), :status => 404 end # Handler for Redmine::Scm::Adapters::CommandFailed exception -- cgit v1.2.3