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

Fix error message in case of version-mismatch #626

Merged
merged 1 commit into from
Nov 14, 2021

Conversation

bobmcwhirter
Copy link
Contributor

Make the error message more meaningful.

Currently it tells you probe-run supports defmt X while the firmware supports defmt Y, which is reasonable. But the substitution then tells you to install a version of probe-run that supports X (the version you're already using), which is contradictory, since Y (firmware supported version) is the real version you need to install for.

Make the error message more meaningful. 

Currently it tells you probe-run supports defmt X while the firmware supports defmt Y, which is reasonable. But the substitution then tells you to install a version of probe-run that supports X (the version you're already using), which is contradictory, since Y (firmware supported version) is the real version you need to install for.
@bobmcwhirter
Copy link
Contributor Author

Exact error output prior to this change:

Error: defmt wire format version mismatch: firmware is using 0.2, `probe-run` supports 3
suggestion: `cargo install` a different version of `probe-run` that supports defmt 3

@Urhengulas
Copy link
Member

Good catch!

bors r+

bors bot added a commit that referenced this pull request Nov 14, 2021
626: Update mod.rs r=Urhengulas a=bobmcwhirter

Make the error message more meaningful. 

Currently it tells you probe-run supports defmt X while the firmware supports defmt Y, which is reasonable. But the substitution then tells you to install a version of probe-run that supports X (the version you're already using), which is contradictory, since Y (firmware supported version) is the real version you need to install for.

Co-authored-by: Bob McWhirter <bmcwhirt@redhat.com>
@Urhengulas
Copy link
Member

bors cancel

@bors
Copy link
Contributor

bors bot commented Nov 14, 2021

Canceled.

@Urhengulas Urhengulas changed the title Update mod.rs Fix error message in case of version-mismatch Nov 14, 2021
@Urhengulas
Copy link
Member

bors r+

@bors
Copy link
Contributor

bors bot commented Nov 14, 2021

Build succeeded:

@bors bors bot merged commit 8984355 into knurling-rs:main Nov 14, 2021
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.

2 participants