Skip to content

Commit 370cfec

Browse files
committed
detect another kind of broken manifest
1 parent ada39c0 commit 370cfec

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/prepare.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,9 @@ fn run_command(cmd: Command) -> anyhow::Result<()> {
154154
|| line.contains("no matching package named")
155155
{
156156
missing_deps = true;
157-
} else if line.contains("failed to parse manifest at") {
157+
} else if line.contains("failed to parse manifest at")
158+
|| line.contains("error: invalid table header")
159+
{
158160
broken_deps = true;
159161
}
160162
};

tests/buildtest/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ test_prepare_error_stderr!(
268268
"failed to parse the version requirement `0.11\t` for dependency `parking_lot`"
269269
);
270270

271-
test_prepare_unknown_err!(
271+
test_prepare_error_stderr!(
272272
test_invalid_cargotoml_syntax_deps,
273273
"invalid-cargotoml-syntax-deps",
274274
BrokenDependencies,

0 commit comments

Comments
 (0)