Permalink
Browse files

proper response and response code (404 instead of 200)

  • Loading branch information...
dereuromark committed Feb 22, 2013
1 parent fd7158c commit eb49c4b666687c5d51b1274bb5f94bfda8e3bbd4
Showing with 2 additions and 2 deletions.
  1. +1 −1 app/webroot/test.php
  2. +1 −1 lib/Cake/Console/Templates/skel/webroot/test.php
View
@@ -90,7 +90,7 @@
}
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';
@@ -90,7 +90,7 @@
}
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';

0 comments on commit eb49c4b

Please sign in to comment.