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.
This commit is contained in:
Arnold Almeida 2013-06-07 14:21:35 +08:00
parent f14c55916f
commit dacf7e0ebe

View file

@ -214,7 +214,7 @@ class FixtureTask extends BakeTask {
$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;
}