Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

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...
1 parent f14c559 commit dacf7e0ebebb31fa56ae78235ce60a72fddf7d32 @arnold-almeida arnold-almeida committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Cake/Console/Command/Task/FixtureTask.php
2  lib/Cake/Console/Command/Task/FixtureTask.php
@@ -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;

0 comments on commit dacf7e0

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