Skip to content

Commit 0b6cc3c

Browse files
committed
Auto merge of #12732 - tompscanlan:12576-registry-error-msg, r=epage
more specific registry index not found msg ### What does this PR try to resolve? covers #12576 ### How should we test and review this PR? test covers exact text, so a review and passing tests.
2 parents c1c2e7b + 3393fdc commit 0b6cc3c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/cargo/util/config/mod.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1548,7 +1548,10 @@ impl Config {
15481548
)
15491549
})
15501550
} else {
1551-
bail!("no index found for registry: `{}`", registry);
1551+
bail!(
1552+
"registry index was not found in any configuration: `{}`",
1553+
registry
1554+
);
15521555
}
15531556
}
15541557

tests/testsuite/source_replacement.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ fn undefined_default() {
243243
.replace_crates_io(crates_io.index_url())
244244
.with_status(101)
245245
.with_stderr(
246-
"[ERROR] no index found for registry: `undefined`
246+
"[ERROR] registry index was not found in any configuration: `undefined`
247247
",
248248
)
249249
.run();

0 commit comments

Comments
 (0)