From 41e5ce367b18c246a67974ce4f10f436dc25926a Mon Sep 17 00:00:00 2001 From: Nils Martel Date: Thu, 2 Mar 2023 11:00:56 +0100 Subject: [PATCH] Make error more illuminating I was wondering what the previous error message ment. So I had to look it up. Cargo directory might just mean ~/.cargo --- src/cargo.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cargo.rs b/src/cargo.rs index 251e9d848..572451ecc 100644 --- a/src/cargo.rs +++ b/src/cargo.rs @@ -34,7 +34,7 @@ pub fn crate_root() -> Result { } None }) - .ok_or_else(|| Error::CargoError("Failed to find the cargo directory".to_string())) + .ok_or_else(|| Error::CargoError("Failed to find directory containing Cargo.toml".to_string())) } /// Checks if the directory contains `Cargo.toml`