Skip to content

Commit 66b6eb9

Browse files
Address review comments
1 parent 0a08bf6 commit 66b6eb9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/docbuilder/options.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,17 @@ impl DocBuilderOptions {
9393

9494
pub fn check_paths(&self) -> Result<()> {
9595
if !self.destination.exists() {
96-
bail!("destionation path '{}' does not exist", self.destination.display());
96+
bail!("destination path '{}' does not exist", self.destination.display());
9797
}
9898
if !self.chroot_path.exists() {
9999
bail!("chroot path '{}' does not exist", self.chroot_path.display());
100100
}
101101
if !self.crates_io_index_path.exists() {
102102
bail!("crates.io-index path '{}' does not exist", self.crates_io_index_path.display());
103103
}
104+
if !self.sources_path.exists() {
105+
bail!("sources path '{}' does not exist", self.sources_path.display());
106+
}
104107
Ok(())
105108
}
106109
}

0 commit comments

Comments
 (0)