mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-01 22:41:16 +00:00
Rename project API error (#3893)
This commit is contained in:
parent
038af6e658
commit
2b6c24ed2d
1 changed files with 2 additions and 2 deletions
|
@ -31,7 +31,7 @@ pub(crate) mod run;
|
||||||
pub(crate) mod sync;
|
pub(crate) mod sync;
|
||||||
|
|
||||||
#[derive(thiserror::Error, Debug)]
|
#[derive(thiserror::Error, Debug)]
|
||||||
pub(crate) enum Error {
|
pub(crate) enum ProjectError {
|
||||||
#[error(transparent)]
|
#[error(transparent)]
|
||||||
Interpreter(#[from] uv_interpreter::Error),
|
Interpreter(#[from] uv_interpreter::Error),
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ pub(crate) fn init_environment(
|
||||||
preview: PreviewMode,
|
preview: PreviewMode,
|
||||||
cache: &Cache,
|
cache: &Cache,
|
||||||
printer: Printer,
|
printer: Printer,
|
||||||
) -> Result<PythonEnvironment, Error> {
|
) -> Result<PythonEnvironment, ProjectError> {
|
||||||
let venv = project.workspace().root().join(".venv");
|
let venv = project.workspace().root().join(".venv");
|
||||||
|
|
||||||
// Discover or create the virtual environment.
|
// Discover or create the virtual environment.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue