-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: make it an error to call CollectStatusEvent.add_status with err…
…or or unknown (#1386) Add a runtime check to immediately raise an InvalidStatusError if add_status is called with ErrorStatus or UnknownStatus. Previously these statuses would (in the case of ErrorStatus) or might (in the case of UnknownStatus) lead to an InvalidStatusError when it came time to set the status after the collect-status observer returned. It was never valid to set either status, this just means that the user will get an immediate exception that points to the line adding the bad status.
- Loading branch information
1 parent
98a4e4f
commit 64d9565
Showing
2 changed files
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters