Browse Source

Add missing return.

mark_story 12 years ago
parent
commit
6d80d6a3cb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Cake/Console/Command/ConsoleShell.php

+ 1 - 1
lib/Cake/Console/Command/ConsoleShell.php

@@ -439,7 +439,7 @@ class ConsoleShell extends AppShell {
  */
 	protected function _routesReload() {
 		if (!$this->_loadRoutes()) {
-			$this->err(__d('cake_console', "There was an error loading the routes config. Please check that the file exists and is free of parse errors."));
+			return $this->err(__d('cake_console', "There was an error loading the routes config. Please check that the file exists and is free of parse errors."));
 		}
 		$this->out(__d('cake_console', "Routes configuration reloaded, %d routes connected", count(Router::$routes)));
 	}