Skip to content

Commit

Permalink
Auto merge of #12732 - tompscanlan:12576-registry-error-msg, r=epage
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bors committed Sep 25, 2023
2 parents c1c2e7b + 3393fdc commit 0b6cc3c
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 @@ -1548,7 +1548,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 0b6cc3c

Please sign in to comment.