mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-24 09:06:05 +00:00
Use user_display for source tree error (#2768)
This commit is contained in:
parent
ccd457a37e
commit
b73cfbb0de
1 changed files with 2 additions and 1 deletions
|
|
@ -11,6 +11,7 @@ use distribution_types::{BuildableSource, PackageId, PathSourceUrl, SourceUrl};
|
|||
use pep508_rs::Requirement;
|
||||
use uv_client::RegistryClient;
|
||||
use uv_distribution::{DistributionDatabase, Reporter};
|
||||
use uv_fs::Simplified;
|
||||
use uv_resolver::InMemoryIndex;
|
||||
use uv_types::BuildContext;
|
||||
|
||||
|
|
@ -73,7 +74,7 @@ impl<'a, Context: BuildContext + Send + Sync> SourceTreeResolver<'a, Context> {
|
|||
let path = fs_err::canonicalize(source_tree).with_context(|| {
|
||||
format!(
|
||||
"Failed to canonicalize path to source tree: {}",
|
||||
source_tree.display()
|
||||
source_tree.user_display()
|
||||
)
|
||||
})?;
|
||||
let Ok(url) = Url::from_directory_path(&path) else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue