From dacf7e0ebebb31fa56ae78235ce60a72fddf7d32 Mon Sep 17 00:00:00 2001 From: Arnold Almeida Date: Fri, 7 Jun 2013 14:21:35 +0800 Subject: [PATCH] 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. --- lib/Cake/Console/Command/Task/FixtureTask.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Console/Command/Task/FixtureTask.php b/lib/Cake/Console/Command/Task/FixtureTask.php index 6579e7aea..2a3cdce61 100644 --- a/lib/Cake/Console/Command/Task/FixtureTask.php +++ b/lib/Cake/Console/Command/Task/FixtureTask.php @@ -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; }