Browse Source

proper response and response code (404 instead of 200)

euromark 13 years ago
parent
commit
eb49c4b666
2 changed files with 2 additions and 2 deletions
  1. 1 1
      app/webroot/test.php
  2. 1 1
      lib/Cake/Console/Templates/skel/webroot/test.php

+ 1 - 1
app/webroot/test.php

@@ -90,7 +90,7 @@ if (!empty($failed)) {
 }
 
 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';

+ 1 - 1
lib/Cake/Console/Templates/skel/webroot/test.php

@@ -90,7 +90,7 @@ if (!empty($failed)) {
 }
 
 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';