Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Commit

Permalink
Merge pull request #837 from cloudflare/alewis/warn-node-modules
Browse files Browse the repository at this point in the history
Add help suggestion on webpack failure
  • Loading branch information
ashleymichal authored Nov 4, 2019
2 parents 588deb2 + 49a6cdd commit 639b7f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/commands/build/wranglerjs/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ fn write_wranglerjs_output(
) -> Result<(), failure::Error> {
if output.has_errors() {
message::user_error(output.get_errors().as_str());
failure::bail!("Webpack returned an error");
failure::bail!(
"webpack returned an error. You may be able to resolve this issue by running npm install."
);
}

bundle.write(output)?;
Expand Down

0 comments on commit 639b7f1

Please sign in to comment.