-
Notifications
You must be signed in to change notification settings - Fork 319
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Raise error if enum not provided for a value we're trying to encode (#…
…2587) Summary: Pull Request resolved: #2587 We probably want to let the user know if they're trying to encode/save a value we're going to drop. It turns out prior to this diff, a `None` for the enum that would be used to encode the value is treated differently than an actual enum that just happens to be missing the value. So a missing enum for experiment type would not raise an error if experiment type was passed. This should debatably only be done in test mode though. Silent failures are generally bad though and we could cause more problems down the road by not saving data we need to. Reviewed By: Cesar-Cardoso Differential Revision: D59925061
- Loading branch information
1 parent
9679f7b
commit 643e0c1
Showing
2 changed files
with
48 additions
and
3 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