Skip to content
This repository
Browse code

Update FixtureTask.php

Using err() does not stop shell output when used in the context of a script. 

Also no nice color syntax to indicate that there was an error with one of the fixture generations.

Using error() fixes that.
  • Loading branch information...
commit dacf7e0ebebb31fa56ae78235ce60a72fddf7d32 1 parent f14c559
Arnold Almeida authored June 07, 2013
2  lib/Cake/Console/Command/Task/FixtureTask.php
@@ -214,7 +214,7 @@ public function bake($model, $useTable = false, $importOptions = array()) {
214 214
 		$this->_Schema = new CakeSchema();
215 215
 		$data = $this->_Schema->read(array('models' => false, 'connection' => $this->connection));
216 216
 		if (!isset($data['tables'][$useTable])) {
217  
-			$this->err('Could not find your selected table ' . $useTable);
  217
+			$this->error('Could not find your selected table ' . $useTable);
218 218
 			return false;
219 219
 		}
220 220
 

0 notes on commit dacf7e0

Please sign in to comment.
Something went wrong with that request. Please try again.