Преглед на файлове

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
Nils Martel преди 2 години
родител
ревизия
41e5ce367b
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/cargo.rs

+ 1 - 1
src/cargo.rs

@@ -34,7 +34,7 @@ pub fn crate_root() -> Result<PathBuf> {
             }
             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`