10000 [AssetMapper] Improve exception message when a downloaded asset is no… · symfony/symfony@69cae6f · GitHub
[go: up one dir, main page]

Skip to content

Commit 69cae6f

Browse files
committed
[AssetMapper] Improve exception message when a downloaded asset is not found
1 parent 62e115f commit 69cae6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
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