Browse Source

Fix error message.

Use better grammar.
Mark Story 10 years ago
parent
commit
d65fd83656
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Http/ActionDispatcher.php

+ 1 - 1
src/Http/ActionDispatcher.php

@@ -118,7 +118,7 @@ class ActionDispatcher
 
         $response = $controller->invokeAction();
         if ($response !== null && !($response instanceof Response)) {
-            throw new LogicException('Controller actions can only Cake\Network\Response instances');
+            throw new LogicException('Controller actions can only return Cake\Network\Response or null.');
         }
 
         if (!$response && $controller->autoRender) {