diff options
author | Francis Irving <francis@mysociety.org> | 2010-08-16 17:35:38 +0100 |
---|---|---|
committer | Francis Irving <francis@mysociety.org> | 2010-08-16 17:35:38 +0100 |
commit | 906d27d850604f908ac9be757bbc85871c4640b7 (patch) | |
tree | 2fca598ae47eb001010eddf6b51b9d049eec5289 /app/controllers/request_controller.rb | |
parent | aa127d98a9dd70bf4fb660ec0d260789a1fded06 (diff) |
Give explicit error
Diffstat (limited to 'app/controllers/request_controller.rb')
-rw-r--r-- | app/controllers/request_controller.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb index 767bb8488..f56d391a3 100644 --- a/app/controllers/request_controller.rb +++ b/app/controllers/request_controller.rb @@ -19,6 +19,9 @@ class RequestController < ApplicationController # Look up by new style text names @info_request = InfoRequest.find_by_url_title(params[:url_title]) + if @info_request.nil? + raise "Request not found" + end set_last_request(@info_request) # Test for whole request being hidden |