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

Make archive validation error messages friendlier #1188

Merged

Conversation

ubergesundheit
Copy link
Contributor

@ubergesundheit ubergesundheit commented Feb 16, 2021

Please check if the PR fulfills these requirements

  • The PR has no duplicates (please search among the Pull Requests
    before creating one)
  • The PR follows
    our contributing guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • UPGRADING.md has been updated with a migration guide (for breaking changes)
  • What kind of change does this PR introduce?
    User experience improvement
  • What is the current behavior?
    Trying to install packages with core install <fqdn> is not helpful when:

  • Index file has incorrect size for a package file

  • Index file has no checksum for a package file

  • What is the new behavior?
    This PR improves the errors printed when the package file contains incorrect values

See how to contribute

@ubergesundheit
Copy link
Contributor Author

Seems I should've run the tests locally. I'll fix everything later

@ubergesundheit
Copy link
Contributor Author

@cmaglie @silvanocerza sorry for pinging you, but I could not find any information who to tag in PR and I think this PR adds useful changes.

Please let me know if I need to change something. Thanks :)

@ubidefeo
Copy link

hey @ubergesundheit
we have a few days of heavy workload ahead but I'll make sure this ends up being looked at next week at the latest

Copy link
Contributor

@silvanocerza silvanocerza left a comment

Choose a reason for hiding this comment

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

Nice! Thanks for the contribution, better error handling is always welcome. :)

@silvanocerza silvanocerza merged commit 59b6277 into arduino:master Feb 23, 2021
@silvanocerza
Copy link
Contributor

Merged! Thanks for the contribution, looking forward to future ones. :)

@ubergesundheit ubergesundheit deleted the improve-index-validation-messages branch February 23, 2021 13:34
silvanocerza pushed a commit that referenced this pull request Feb 25, 2021
* Make archive validation error messages friendlier

* change behaviour a little + fix tests
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.

3 participants