Skip to content

Commit

Permalink
Update FixtureTask.php
Browse files Browse the repository at this point in the history
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
arnold-almeida committed Jun 7, 2013
1 parent f14c559 commit dacf7e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Console/Command/Task/FixtureTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ public function bake($model, $useTable = false, $importOptions = array()) {
$this->_Schema = new CakeSchema();
$data = $this->_Schema->read(array('models' => false, 'connection' => $this->connection));
if (!isset($data['tables'][$useTable])) {
$this->err('Could not find your selected table ' . $useTable);
$this->error('Could not find your selected table ' . $useTable);
return false;
}

Expand Down

0 comments on commit dacf7e0

Please sign in to comment.