Skip to content

Commit ba874d3

Browse files
committed
tidy: Print crate name on dependency error
1 parent cb81972 commit ba874d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tools/tidy/src/deps.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,8 @@ pub fn check(root: &Path, cargo: &Path, bless: bool, bad: &mut bool) {
621621

622622
check_license_exceptions(&metadata, path, exceptions, bad);
623623
if let Some((crates, permitted_deps)) = crates_and_deps {
624-
check_permitted_dependencies(&metadata, path, permitted_deps, crates, bad);
624+
let descr = crates.get(0).unwrap_or(&path);
625+
check_permitted_dependencies(&metadata, descr, permitted_deps, crates, bad);
625626
}
626627

627628
if path == "library" {

0 commit comments

Comments
 (0)