From 88da5deda7d736b24a1d6d832ddc6b156438ad01 Mon Sep 17 00:00:00 2001 From: bruce aldridge Date: Tue, 23 Aug 2016 10:56:05 +1200 Subject: [PATCH] Small bug in error handling :bug: --- src/TaskRunner.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/TaskRunner.php b/src/TaskRunner.php index bfb171b..5c86256 100644 --- a/src/TaskRunner.php +++ b/src/TaskRunner.php @@ -130,9 +130,9 @@ public function errorTearDown() public function handleError($code, $message, $file, $lineNumber) { echo sprintf('ERROR: %s %s', $code, PHP_EOL); - echo sprintf('ERROR FILE: %s %s', $message, PHP_EOL); - echo sprintf('ERROR LINE: %s %s', $file, PHP_EOL); - echo sprintf('ERROR MESSAGE: %s %s', $lineNumber, PHP_EOL); + echo sprintf('ERROR FILE: %s %s', $file, PHP_EOL); + echo sprintf('ERROR LINE: %s %s', $lineNumber, PHP_EOL); + echo sprintf('ERROR MESSAGE: %s %s', $message, PHP_EOL); // if the failed task was mid transaction, rollback so we can save. if (null !==($tx = \Yii::$app->db->getTransaction())) {