Skip to content

Commit 550ed6c

Browse files
committed
minor #1545 Update error message with php bin/console (Fan2Shrek)
This PR was merged into the 2.x branch. Discussion ---------- Update error message with `php bin/console` | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Issues | no | License | MIT During my testing of Symfony/UX, I encountered the 'Try running "importmap:require %s"' message. I think it could be more precise to add php bin/console to help people :) Commits ------- 4eda435 Update error message with php bin/console
2 parents 7030526 + 4eda435 commit 550ed6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/StimulusBundle/src/AssetMapper/AutoImportLocator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function locateAutoImport(string $path, UxPackageMetadata $packageMetadat
6464

6565
$entry = $this->importMapConfigReader->findRootImportMapEntry($path);
6666
if (!$entry) {
67-
throw new \LogicException(sprintf('The autoimport "%s" could not be found in importmap.php. Try running "importmap:require %s".', $path, $path));
67+
throw new \LogicException(sprintf('The autoimport "%s" could not be found in importmap.php. Try running "php bin/console importmap:require %s".', $path, $path));
6868
}
6969

7070
return new MappedControllerAutoImport($path, true);

0 commit comments

Comments
 (0)