proper response and response code (404 instead of 200)

This commit is contained in:
euromark 2013-02-22 10:36:05 +01:00
parent fd7158c108
commit eb49c4b666
2 changed files with 2 additions and 2 deletions

View file

@ -90,7 +90,7 @@ if (!empty($failed)) {
} }
if (Configure::read('debug') < 1) { if (Configure::read('debug') < 1) {
die(__d('cake_dev', 'Debug setting does not allow access to this url.')); throw new NotFoundException(__d('cake_dev', 'Debug setting does not allow access to this url.'));
} }
require_once CAKE . 'TestSuite' . DS . 'CakeTestSuiteDispatcher.php'; require_once CAKE . 'TestSuite' . DS . 'CakeTestSuiteDispatcher.php';

View file

@ -90,7 +90,7 @@ if (!empty($failed)) {
} }
if (Configure::read('debug') < 1) { if (Configure::read('debug') < 1) {
die(__d('cake_dev', 'Debug setting does not allow access to this url.')); throw new NotFoundException(__d('cake_dev', 'Debug setting does not allow access to this url.'));
} }
require_once CAKE . 'TestSuite' . DS . 'CakeTestSuiteDispatcher.php'; require_once CAKE . 'TestSuite' . DS . 'CakeTestSuiteDispatcher.php';