Skip to content

Bug fix in property validation error message#81

Merged
acrisci merged 1 commit into
altdesktop:masterfrom
tristantech:bug/property-check-error-message
Jan 29, 2021
Merged

Bug fix in property validation error message#81
acrisci merged 1 commit into
altdesktop:masterfrom
tristantech:bug/property-check-error-message

Conversation

@tristantech
Copy link
Copy Markdown
Contributor

Issue

  • member is undefined here and triggers an AttributeError, causing
    user to miss the actual error message.

Fix

  • Replace member with prop. Tested by creating a RW property
    without a setter and got the correct error message:
ValueError: property "MyProp" is writable but does not have a setter

 #### Issue
  * `member` is undefined here and triggers an AttributeError, causing
  user to miss the actual error message.

 #### Fix
  * Replace `member` with `prop`. Tested by creating a RW property
  without a setter and got the correct error message:
  ```
  ValueError: property "MyProp" is writable but does not have a setter
  ```
@acrisci
Copy link
Copy Markdown
Member

acrisci commented Jan 29, 2021

👍

@acrisci acrisci merged commit b3c2c75 into altdesktop:master Jan 29, 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