Skip to content

Commit 5ebbe57

Browse files
committed
detect another variant of missing package error
the message is slightly different if there exists a potentially typoed crate
1 parent 5328ecc commit 5ebbe57

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/prepare.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ fn run_command(cmd: Command) -> anyhow::Result<()> {
153153
yanked_deps = true;
154154
} else if line.contains("failed to load source for dependency")
155155
|| line.contains("no matching package named")
156+
|| line.contains("no matching package found")
156157
{
157158
missing_deps = true;
158159
} else if line.contains("failed to parse manifest at")

tests/buildtest/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ test_prepare_error_stderr!(
282282
"error: failed to parse lock file at"
283283
);
284284

285-
test_prepare_unknown_err!(
285+
test_prepare_error_stderr!(
286286
test_missing_deps_typo,
287287
"missing-deps-typo",
288288
MissingDependencies,

0 commit comments

Comments
 (0)