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

Commit

Permalink
Add help suggestion on webpack failure
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleymichal committed Nov 4, 2019
1 parent 42acc7a commit 9f57d91
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. Try re-running npm install, or yarn check --verify-tree."
);
}

bundle.write(output)?;
Expand Down

0 comments on commit 9f57d91

Please sign in to comment.