Skip to content
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...
arnold-almeida committed Jun 7, 2013
1 parent f14c559 commit dacf7e0ebebb31fa56ae78235ce60a72fddf7d32
Showing with 1 addition and 1 deletion.
  1. +1 −1 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.
You can’t perform that action at this time.