소스 검색

Merge pull request #112 from nilsmartel/patch-1

Make error more illuminating
YuKun Liu 2 년 전
부모
커밋
ba3f067ffb
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`