From 906d27d850604f908ac9be757bbc85871c4640b7 Mon Sep 17 00:00:00 2001 From: Francis Irving Date: Mon, 16 Aug 2010 17:35:38 +0100 Subject: Give explicit error --- app/controllers/request_controller.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'app/controllers/request_controller.rb') 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 -- cgit v1.2.3