Skip to content

Commit 6787fc2

Browse files
committed
feat: say how many asset files ymir was unable to process
1 parent 5f22628 commit 6787fc2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Deployment/ProcessAssetsStep.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,10 @@ public function perform(Collection $deployment, string $environment, OutputInter
8888
'hash' => $asset['hash'],
8989
];
9090
})->all());
91+
$UnprocessedAssetFiles = count($assetFiles) - count($signedAssetRequests);
9192

92-
if (count($assetFiles) !== count($signedAssetRequests)) {
93-
$output->warning('Not all asset files were processed successfully');
93+
if (0 !== $UnprocessedAssetFiles) {
94+
$output->warning(sprintf('Unable to process %s asset files', $UnprocessedAssetFiles));
9495
}
9596

9697
$signedAssetRequests = $signedAssetRequests->groupBy('command', true);

0 commit comments

Comments
 (0)