chore(build): print only stem instead of full path in warn
This commit is contained in:
parent
262c75d36d
commit
0e4dd8a7a8
1 changed files with 1 additions and 1 deletions
2
build.rs
2
build.rs
|
@ -28,7 +28,7 @@ fn main() -> Result<()> {
|
||||||
if let Ok(ref key) = key_res {
|
if let Ok(ref key) = key_res {
|
||||||
let path = out_dir.join(format!("{}.pem", key.algorithm().as_str()));
|
let path = out_dir.join(format!("{}.pem", key.algorithm().as_str()));
|
||||||
if path.exists() {
|
if path.exists() {
|
||||||
println!("cargo:warning=Skipping existing host key: {:?}", path);
|
println!("cargo:warning=Skipping existing host key: {:?}", path.file_stem());
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue