Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

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

Sign up
Appearance settings

Commit06fb6fe

Browse files
jmschenicolas-grekas
authored andcommitted
[AssetMapper] Improve the error message when a downloaded file is missing
1 parent8a93c4c commit06fb6fe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,10 @@ private function convertEntriesToImports(array $entries): array
382382

383383
if (null !==$entryOptions->path) {
384384
if (!$asset =$this->assetMapper->getAsset($entryOptions->path)) {
385+
if ($entryOptions->isDownloaded) {
386+
thrownew \InvalidArgumentException(sprintf('The "%s" downloaded asset is missing. Run "php bin/console importmap:require "%s" --download".',$entryOptions->path,$entryOptions->importName));
387+
}
388+
385389
thrownew \InvalidArgumentException(sprintf('The asset "%s" mentioned in "%s" cannot be found in any asset map paths.',$entryOptions->path,basename($this->importMapConfigPath)));
386390
}
387391
$path =$asset->publicPath;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp