Skip to content

Commit ef7d055

Browse files
committed
Improve error message when Cargo.lock is missing
1 parent 4f766fe commit ef7d055

File tree

1 file changed

+3
-2
lines changed
  • collector/src/compile/execute

1 file changed

+3
-2
lines changed

collector/src/compile/execute/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,10 @@ impl<'a> CargoProcess<'a> {
290290
let _guard = EnsureImmutableFile::new(
291291
&self.cwd.join("Cargo.lock"),
292292
self.processor_name.0.clone(),
293-
)?;
293+
)
294+
.context("cannot resolve Cargo.lock")?;
294295

295-
// Get the subcommand. If it's not `rustc` it must should be a
296+
// Get the subcommand. If it's not `rustc` it should be a
296297
// subcommand that itself invokes `rustc` (so that the `FAKE_RUSTC`
297298
// machinery works).
298299
let cargo_subcommand =

0 commit comments

Comments
 (0)