message: moved fs read to success branch
diff: @@ -33,10 +33,11 @@ pub fn run_build(cache: &Cache, project: &Project) -> Result<(), failure::Error>
  info!("Running {:?}", command);
  let status = command.status()?;
  +
  + if status.success() {
  let output = fs::read_to_string(temp_file.clone()).expect("could not retrieve ouput");
  fs::remove_file(temp_file)?;
  - if status.success() {
  let wranglerjs_output: WranglerjsOutput =
  serde_json::from_str(&output).expect("could not parse wranglerjs output");
  @@ -59,6 +60,7 @@ pub fn run_build(cache: &Cache, project: &Project) -> Result<(), failure::Error>
  message::success(&msg);
  Ok(())
  } else {
  + fs::remove_file(temp_file)?;
  failure::bail!("failed to execute `{:?}`: exited with {}", command, status)
  }
  }
  