Small file error display fix
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
parent
b5f524c7ff
commit
d8c36029cc
@ -51,7 +51,7 @@ impl Sysroot {
|
|||||||
pub fn discover(cargo_toml: &AbsPath) -> Result<Sysroot> {
|
pub fn discover(cargo_toml: &AbsPath) -> Result<Sysroot> {
|
||||||
log::debug!("Discovering sysroot for {}", cargo_toml.display());
|
log::debug!("Discovering sysroot for {}", cargo_toml.display());
|
||||||
let current_dir = cargo_toml.parent().ok_or_else(|| {
|
let current_dir = cargo_toml.parent().ok_or_else(|| {
|
||||||
format_err!("Failed to find the parent directory for file {:?}", cargo_toml)
|
format_err!("Failed to find the parent directory for {}", cargo_toml.display())
|
||||||
})?;
|
})?;
|
||||||
let sysroot_dir = discover_sysroot_dir(current_dir)?;
|
let sysroot_dir = discover_sysroot_dir(current_dir)?;
|
||||||
let sysroot_src_dir = discover_sysroot_src_dir(&sysroot_dir, current_dir)?;
|
let sysroot_src_dir = discover_sysroot_src_dir(&sysroot_dir, current_dir)?;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user