We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5912fc commit f74c39aCopy full SHA for f74c39a
src/lib.rs
@@ -343,7 +343,14 @@ impl CIPlatform {
343
344
fn get_build_deps(manifest_location: &path::Path) -> io::Result<Vec<(String, String)>> {
345
let mut lock_buf = String::new();
346
- fs::File::open(manifest_location.join("Cargo.lock"))?.read_to_string(&mut lock_buf)?;
+ fs::File::open(manifest_location.join("Cargo.lock"))
347
+ .map_err(|i| {
348
+ std::io::Error::new(
349
+ i.kind(),
350
+ "No Cargo.lock file found, see set_dependencies documentation",
351
+ )
352
+ })?
353
+ .read_to_string(&mut lock_buf)?;
354
Ok(parse_dependencies(&lock_buf))
355
}
356
0 commit comments