Skip to content

Commit

Permalink
Small bug in error handling 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
brucealdridge authored Aug 22, 2016
1 parent 9a05232 commit 88da5de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/TaskRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -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())) {
Expand Down

0 comments on commit 88da5de

Please sign in to comment.