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 */