more specific registry index not found msg

This commit is contained in:
Tom Scanlan 2023-09-24 15:41:10 -04:00
parent d5336f813d
commit 3393fdc528
No known key found for this signature in database
2 changed files with 5 additions and 2 deletions

View File

@ -1546,7 +1546,10 @@ impl Config {
)
})
} else {
bail!("no index found for registry: `{}`", registry);
bail!(
"registry index was not found in any configuration: `{}`",
registry
);
}
}

View File

@ -243,7 +243,7 @@ fn undefined_default() {
.replace_crates_io(crates_io.index_url())
.with_status(101)
.with_stderr(
"[ERROR] no index found for registry: `undefined`
"[ERROR] registry index was not found in any configuration: `undefined`
",
)
.run();