Skip to content

Commit

Permalink
[Asset] Update the error message when assets are not built
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Mar 7, 2022
1 parent ca30ea1 commit 4dee0d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion VersionStrategy/JsonManifestVersionStrategy.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ private function getManifestPath(string $path): ?string
{
if (null === $this->manifestData) {
if (!file_exists($this->manifestPath)) {
throw new \RuntimeException(sprintf('Asset manifest file "%s" does not exist.', $this->manifestPath));
throw new \RuntimeException(sprintf('Asset manifest file "%s" does not exist. Did you forget to build the assets with npm or yarn?', $this->manifestPath));
}

$this->manifestData = json_decode(file_get_contents($this->manifestPath), true);
Expand Down

0 comments on commit 4dee0d0

Please sign in to comment.