Skip to content

Commit 3393fdc

Browse files
committed
more specific registry index not found msg
1 parent d5336f8 commit 3393fdc

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/cargo/util/config/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1546,7 +1546,10 @@ impl Config {
15461546
)
15471547
})
15481548
} else {
1549-
bail!("no index found for registry: `{}`", registry);
1549+
bail!(
1550+
"registry index was not found in any configuration: `{}`",
1551+
registry
1552+
);
15501553
}
15511554
}
15521555

tests/testsuite/source_replacement.rs

Lines changed: 1 addition & 1 deletion
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)