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

Output the missing peripheral name and referencing task instead of panicing. #151

Merged
merged 1 commit into from
May 11, 2021

Conversation

luqmana
Copy link
Contributor

@luqmana luqmana commented May 11, 2021

Got confused by this error initially as all it tells you is that it panic-ed while building:

thread 'main' panicked at 'IndexMap: key not found', xtask/src/dist.rs:713:46
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Updated it with a lot more helpful error message so one doesn't need to go digging into the source to figure out what failed:

Error: Could not find peripheral `gpiod` referenced by task `user_leds`.

@luqmana luqmana merged commit c6f1b89 into master May 11, 2021
@luqmana luqmana deleted the better-errors-missing-peripheral branch May 11, 2021 16:39
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