Skip to content

Commit a941e6e

Browse files
committed
build CLI: enclose paths in "`" for console display
1 parent 068bdfc commit a941e6e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎crates/bin/docs_rs_build/src/main.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ fn run(args: &Args) -> Result<bool> {
8989

9090
fn ensure_crate_path(path: &Path) -> Result<()> {
9191
if !path.join("Cargo.toml").is_file() {
92-
bail!("{} does not contain a Cargo.toml", path.display());
92+
bail!("`{}` does not contain a Cargo.toml", path.display());
9393
}
9494
Ok(())
9595
}

‎crates/bin/docs_rs_build/src/package.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ fn require_package_for_virtual_workspace(manifest_path: &Path) -> Result<()> {
8888
.with_context(|| format!("parsing manifest {}", manifest_path.display()))?;
8989
if manifest.get("workspace").is_some() && manifest.get("package").is_none() {
9090
bail!(
91-
"{} is a virtual workspace; select a member with `--package <SPEC>`",
91+
"`{}` is a virtual workspace; select a member with `--package <SPEC>`",
9292
manifest_path.display()
9393
);
9494
}
@@ -109,7 +109,7 @@ fn find_single_archive(directory: &Path) -> Result<PathBuf> {
109109
match archives.as_slice() {
110110
[archive] => Ok(archive.clone()),
111111
_ => bail!(
112-
"expected exactly one crate archive in {}, found {}",
112+
"expected exactly one crate archive in `{}`, found {}",
113113
directory.display(),
114114
archives.len()
115115
),

0 commit comments

Comments
 (0)