Skip to content

Commit

Permalink
Auto merge of rust-lang#6061 - dwijnand:specify-lockfile-path-in---lo…
Browse files Browse the repository at this point in the history
…cked-error, r=alexcrichton

Specify lockfile path in --locked error msg

Fixes rust-lang#4603
  • Loading branch information
bors committed Sep 20, 2018
2 parents 7c34b13 + b8c24f3 commit 0e3c5f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/cargo/ops/lockfile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,9 @@ pub fn write_pkg_lockfile(ws: &Workspace, resolve: &Resolve) -> CargoResult<()>
"--frozen"
};
bail!(
"the lock file needs to be updated but {} was passed to \
"the lock file {} needs to be updated but {} was passed to \
prevent this",
ws.root().to_path_buf().join("Cargo.lock").display(),
flag
);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/testsuite/lockfile_compat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ fn locked_correct_error() {
.with_stderr(
"\
[UPDATING] `[..]` index
error: the lock file needs to be updated but --locked was passed to prevent this
error: the lock file [CWD]/Cargo.lock needs to be updated but --locked was passed to prevent this
",
).run();
}

0 comments on commit 0e3c5f2

Please sign in to comment.