-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Instead of having `add_error` always add the errors to the additional errors array, and then "promoting" the last of those errors to an error in the current transaction later, when the transaction is completed, do it when an error is first added using `add_error`. To avoid calls to `set_error` overriding this error instead of adding a new one, make `set_error` into an alias to `add_error`. Move the logic to set an error in the transaction into a private `_set_error` method.
- Loading branch information
Showing
3 changed files
with
154 additions
and
123 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
Oops, something went wrong.