Skip to content

Update ValueResult to have generic error type#1861

Merged
charisk merged 1 commit intomainfrom
charisk/value-result-error-type
Dec 13, 2022
Merged

Update ValueResult to have generic error type#1861
charisk merged 1 commit intomainfrom
charisk/value-result-error-type

Conversation

@charisk
Copy link
Copy Markdown
Contributor

@charisk charisk commented Dec 13, 2022

ValueResults so far only allowed errors of type string. This PR makes the type generic so that we can pass different types of errors e.g. objects that are more descriptive than a single message string.

Checklist

N/A:

  • CHANGELOG.md has been updated to incorporate all user visible changes made by this pull request.
  • Issues have been created for any UI or other user-facing changes made by this pull request.
  • [Maintainers only] If this pull request makes user-facing changes that require documentation changes, open a corresponding docs pull request in the github/codeql repo and add the ready-for-doc-review label there.

@charisk charisk added the secexp label Dec 13, 2022
@charisk charisk requested review from a team as code owners December 13, 2022 10:44
Copy link
Copy Markdown
Contributor

@shati-patel shati-patel left a comment

Choose a reason for hiding this comment

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

🚢

@charisk charisk merged commit e18a330 into main Dec 13, 2022
@charisk charisk deleted the charisk/value-result-error-type branch December 13, 2022 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants