Skip to content

Commit

Permalink
more specific registry index not found msg
Browse files Browse the repository at this point in the history
  • Loading branch information
tompscanlan committed Sep 24, 2023
1 parent d5336f8 commit 3393fdc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/cargo/util/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1546,7 +1546,10 @@ impl Config {
)
})
} else {
bail!("no index found for registry: `{}`", registry);
bail!(
"registry index was not found in any configuration: `{}`",
registry
);
}
}

Expand Down
2 changes: 1 addition & 1 deletion tests/testsuite/source_replacement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 3393fdc

Please sign in to comment.