mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
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:
parent
f14c55916f
commit
dacf7e0ebe
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue