Rename project API error (#3893)

This commit is contained in:
Charlie Marsh 2024-05-28 21:59:24 -04:00 committed by GitHub
parent 038af6e658
commit 2b6c24ed2d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -31,7 +31,7 @@ pub(crate) mod run;
pub(crate) mod sync;
#[derive(thiserror::Error, Debug)]
pub(crate) enum Error {
pub(crate) enum ProjectError {
#[error(transparent)]
Interpreter(#[from] uv_interpreter::Error),
@ -48,7 +48,7 @@ pub(crate) fn init_environment(
preview: PreviewMode,
cache: &Cache,
printer: Printer,
) -> Result<PythonEnvironment, Error> {
) -> Result<PythonEnvironment, ProjectError> {
let venv = project.workspace().root().join(".venv");
// Discover or create the virtual environment.