Skip to content

Commit

Permalink
fixes tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DavertMik committed May 5, 2014
1 parent c8c0a99 commit 1dfb252
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Result.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ public function __construct(TaskInterface $task, $exitCode, $message = '', $data
$this->data = $data;

if (!$this->wasSuccessful()) {
$msg = end(explode("\n", $this->message));
$lines = explode("\n", $this->message);
$msg = end($lines);
$this->printTaskInfo("<error>Error</error> $msg", $this->task);
}

Expand Down

0 comments on commit 1dfb252

Please sign in to comment.