mirror of
https://github.com/redmine/redmine.git
synced 2026-05-07 01:56:12 +02:00
ActiveRecord::RecordNotFound exceptions handled more gracefully
git-svn-id: http://redmine.rubyforge.org/svn/trunk@133 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -500,8 +500,8 @@ private
|
||||
def find_project
|
||||
@project = Project.find(params[:id])
|
||||
@html_title = @project.name
|
||||
rescue
|
||||
redirect_to :action => 'list'
|
||||
rescue ActiveRecord::RecordNotFound
|
||||
render_404
|
||||
end
|
||||
|
||||
# Retrieve query from session or build a new query
|
||||
|
||||
Reference in New Issue
Block a user