Skip to content

Commit e452927

Browse files
committed
dist: use logging for missing parent warnings
1 parent b74fb6d commit e452927

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/dist/component/package.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -439,13 +439,11 @@ fn unpack_without_first_dir<R: Read>(
439439
None => {
440440
// Tar has item before containing directory
441441
// Complain about this so we can see if these exist.
442-
use std::io::Write as _;
443-
writeln!(
444-
dl_cfg.process.stderr().lock(),
445-
"Unexpected: missing parent '{}' for '{}'",
442+
warn!(
443+
"unexpected: missing parent '{}' for '{}'",
446444
parent.display(),
447445
entry.path()?.display()
448-
)?;
446+
);
449447
directories.insert(parent.to_owned(), DirStatus::Pending(vec![item]));
450448
item = Item::make_dir(parent.to_owned(), 0o755);
451449
// Check the parent's parent

0 commit comments

Comments
 (0)