Skip to content

Conversation

@Ashtreighlia
Copy link

Issue description

I encountered some bugs that were caused by user input errors (e.g. automatically assigning widths and heights => 0), leading to issues that were challenging to diagnose due to the lack of clear error messages. To address this, I have added checks for the "rect" and "roundrect" functions.

Added checks

These checks aim to ensure the correctness of incoming values and provide error messages if they are out-of-spec.

  • Height and width validation for "rect" and "roundrect"
  • Radius validation for "roundrect"
@ladyada ladyada requested a review from FoamyGuy August 20, 2023 17:06
Copy link

@FoamyGuy FoamyGuy left a comment

Choose a reason for hiding this comment

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

Looks good to me.

I added one commit with changes that the CI formatter was upset about.

Thanks for the improved error handling @Ashtreighlia!

@FoamyGuy FoamyGuy merged commit 2108cbd into adafruit:main Aug 23, 2023
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants