Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 6a3edca

Browse files
Treehugger RobotGerrit Code Review
authored andcommitted
Merge "Print the name of the failed patch file." into main
2 parents 67301b6 + 9ad9aa8 commit 6a3edca

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tools/external_crates/crate_tool/src/managed_crate.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,11 @@ impl ManagedCrate<Vendored> {
313313
.arg(&patch)
314314
.current_dir(self.temporary_build_directory())
315315
.output()?
316-
.success_or_error()?;
316+
.success_or_error()
317+
.context(format!(
318+
"Failed to apply patch file {}",
319+
patch.file_name().unwrap_or_default().to_string_lossy()
320+
))?;
317321
}
318322
Ok(())
319323
}

0 commit comments

Comments
 (0)