We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbba833 commit 97ab5e1Copy full SHA for 97ab5e1
src/lib.rs
@@ -196,7 +196,7 @@ pub fn is_dependency_tree_root<'a>(manifest: &'a Manifest, locator: &'a PackageL
196
197
pub fn find_locator<'a>(manifest: &'a Manifest, path: &Path) -> Option<&'a PackageLocator> {
198
let rel_path = pathdiff::diff_paths(path, &manifest.manifest_dir)
199
- .expect("Assertion failed: Provided path should be absolute");
+ .expect(&format!("Assertion failed: Provided path should be absolute but received {}", path.display()));
200
201
if let Some(regex) = &manifest.ignore_pattern_data {
202
if regex.0.is_match(&util::normalize_path(rel_path.to_string_lossy())).unwrap() {
0 commit comments