Skip to content

Commit e4ebd11

Browse files
Ignore missing files when uploading
1 parent 7d38790 commit e4ebd11

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

collector/src/execute.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,11 @@ impl Upload {
639639

640640
let append_file =
641641
|builder: &mut tar::Builder<_>, file: &Path, name: &str| -> anyhow::Result<()> {
642-
builder.append_path_with_name(file, name)?;
642+
if file.exists() {
643+
// Silently ignore missing files, the new self-profile
644+
// experiment with one file has a different structure.
645+
builder.append_path_with_name(file, name)?;
646+
}
643647
Ok(())
644648
};
645649
append_file(

0 commit comments

Comments
 (0)