From fd2b6021969c77f6c3b1562bb7c7ca253b7565dc Mon Sep 17 00:00:00 2001 From: Gregwar Date: Tue, 4 Dec 2012 11:35:36 +0100 Subject: [PATCH] Fixing the exception throwing and message --- Controller/CaptchaController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Controller/CaptchaController.php b/Controller/CaptchaController.php index 2d8e079..636e163 100644 --- a/Controller/CaptchaController.php +++ b/Controller/CaptchaController.php @@ -36,7 +36,7 @@ class CaptchaController extends Controller } if (!$isOk) { - return $this->createNotFoundException('Unable to generate a captcha via a URL without the proper configuration.'); + throw $this->createNotFoundException('Unable to generate a captcha via an URL with this session key.'); } /* @var \Gregwar\CaptchaBundle\Generator\CaptchaGenerator $generator */