Skip to content

Commit 8d4db4e

Browse files
authored
fix activity result breaks (#1541)
1 parent 53306b0 commit 8d4db4e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Service/ActivityMonitor.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,17 +525,18 @@ private function printResult(Activity $activity, $logOnFailure = false)
525525
switch ($activity->result) {
526526
case Activity::RESULT_SUCCESS:
527527
$stdErr->writeln('The activity succeeded: ' . self::getFormattedDescription($activity, true, true, 'green'));
528-
528+
break;
529529
case Activity::RESULT_FAILURE:
530530
if ($activity->state === Activity::STATE_CANCELLED) {
531531
$stdErr->writeln('The activity was cancelled: ' . self::getFormattedDescription($activity, true, true, 'yellow'));
532+
break;
532533
}
533534
$stdErr->writeln('The activity failed: ' . self::getFormattedDescription($activity, true, true, 'red'));
534535
if ($logOnFailure) {
535536
$stdErr->writeln(' <error>Log:</error>');
536537
$stdErr->writeln($this->indent($this->formatLog($activity->readLog())));
537538
}
538-
539+
break;
539540
default:
540541
$stdErr->writeln('The activity finished with an unknown result: ' . self::getFormattedDescription($activity, true, true, 'yellow'));
541542
}

0 commit comments

Comments
 (0)