message: Make fake release more realistic on failure
diff: @@ -139,6 +139,8 @@ impl<'a> FakeRelease<'a> {
  let package = self.package;
  let db = self.db;
  + let mut source_meta = None;
  + if self.build_result.successful {
  let upload_files = |prefix: &str, files: &[(&str, &[u8])], target: Option<&str>| {
  let mut path_prefix = tempdir.path().join(prefix);
  if let Some(target) = target {
  @@ -180,14 +182,15 @@ impl<'a> FakeRelease<'a> {
  }
  let rustdoc_meta = upload_files("rustdoc", &rustdoc_files, None)?;
  log::debug!("added rustdoc files {}", rustdoc_meta);
  - let source_meta = upload_files("source", &self.source_files, None)?;
  - log::debug!("added source files {}", source_meta);
  + source_meta = Some(upload_files("source", &self.source_files, None)?);
  + log::debug!("added source files {}", source_meta.as_ref().unwrap());
  for target in &package.targets[1..] {
  let platform = target.src_path.as_ref().unwrap();
  upload_files("rustdoc", &rustdoc_files, Some(platform))?;
  log::debug!("added platform files for {}", platform);
  }
  + }
  let release_id = crate::db::add_package_into_database(
  &db.conn(),
  @@ -195,7 +198,7 @@ impl<'a> FakeRelease<'a> {
  tempdir.path(),
  &self.build_result,
  self.default_target.unwrap_or("x86_64-unknown-linux-gnu"),
  - Some(source_meta),
  + source_meta,
  self.doc_targets,
  &self.cratesio_data,
  self.has_docs,
  