Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve error message when no rust-version field is specified #217

Merged
merged 1 commit into from
Sep 11, 2023

Conversation

taiki-e
Copy link
Owner

@taiki-e taiki-e commented Sep 11, 2023

Make error messages easier to understand in cases like https://github.com/rust-lang/cargo/actions/runs/6147097200/job/16677799392?pr=12654.

FYI @epage

src/rustup.rs Outdated
@@ -82,7 +82,7 @@ pub(crate) fn version_range(
};
}
let Some(lowest_msrv) = lowest_msrv else {
bail!("no rust-version field in Cargo.toml is specified")
bail!("no rust-version field in any Cargo.toml is specified")
Copy link
Contributor

@epage epage Sep 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"selected Cargo.toml's" instead of "any Cargo.toml"

(part of my problem was I forgot --workspace)

@taiki-e taiki-e merged commit 46c14f1 into main Sep 11, 2023
25 checks passed
@taiki-e taiki-e deleted the rust-version branch September 11, 2023 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants