8000 minor #51471 [AssetMapper] Improve message when a downloaded asset is… · symfony/symfony@420a5d2 · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 420a5d2

Browse files
committed
minor #51471 [AssetMapper] Improve message when a downloaded asset is not found (jmsche)
This PR was merged into the 6.4 branch. Discussion ---------- [AssetMapper] Improve message when a downloaded asset is not found | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | N/A | License | MIT | Doc PR | N/A This PR improves the exception message introduced in #51337 by mentioning the command introduced in #51351. Commits ------- 69cae6f [AssetMapper] Improve exception message when a downloaded asset is not found
2 parents dbd7747 + 69cae6f commit 420a5d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/AssetMapper/ImportMap/ImportMapManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ private function convertEntriesToImports(array $entries): array
412412
if (null !== $entryOptions->path) {
413413
if (!$asset = $this->assetMapper->getAsset($entryOptions->path)) {
414414
if ($entryOptions->isDownloaded) {
415-
throw new \InvalidArgumentException(sprintf('The "%s" downloaded asset is missing. Run "php bin/console importmap:require "%s" --download".', $entryOptions->path, $entryOptions->importName));
415+
throw new \InvalidArgumentException(sprintf('The "%s" downloaded asset is missing. Run "php bin/console importmap:install".', $entryOptions->path));
416416
}
417417

418418
throw new \InvalidArgumentException(sprintf('The asset "%s" mentioned in "%s" cannot be found in any asset map paths.', $entryOptions->path, basename($this->importMapConfigPath)));

0 commit comments

Comments
 (0)
0