From ceaac707224612e1faf1c7a24880b0374146124a Mon Sep 17 00:00:00 2001 From: Brandon Maier Date: Tue, 24 Dec 2024 11:15:33 -0600 Subject: [PATCH] feat: check if manifest path exists --- src/project/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/project/mod.rs b/src/project/mod.rs index f9c48668b..30f78085a 100644 --- a/src/project/mod.rs +++ b/src/project/mod.rs @@ -243,6 +243,9 @@ impl Project { pub fn load_or_else_discover(manifest_path: Option<&Path>) -> miette::Result { let project = match manifest_path { Some(path) => { + if !path.exists() { + miette::bail!("manifest path does not exist at {}", path.to_string_lossy()); + } let path = if path.is_dir() { &find_project_manifest(path).ok_or_else(|| { miette::miette!(