Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(orderbook): throw error on non-swap fail #868

Merged
merged 1 commit into from Apr 5, 2019

Conversation

sangaman
Copy link
Collaborator

@sangaman sangaman commented Apr 3, 2019

This tweaks the logic around handling exceptions that arise from swap execution to ensure that the exception is a valid SwapFailureReason and to clarify the log messages and intent of the code. If the exception is not a SwapFailureReason we abort the matching procedure instead of repeating it for the failed amount.

This tweaks the logic around handling exceptions that arise from
swap execution to ensure that the exception is a valid
`SwapFailureReason` and to clarify the log messages and intent of the
code. If the exception is not a `SwapFailureReason` we abort the
matching procedure instead of repeating it for the failed amount.
@sangaman sangaman added error handling Handling errors gracefully logging Log messages and output labels Apr 3, 2019
@sangaman sangaman requested a review from erkarl April 3, 2019 07:44
@ghost ghost assigned sangaman Apr 3, 2019
@ghost ghost added the in progress label Apr 3, 2019
@sangaman sangaman merged commit cfe51ee into master Apr 5, 2019
@ghost ghost removed the in progress label Apr 5, 2019
@sangaman sangaman deleted the orderbook-swap-error branch April 5, 2019 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
error handling Handling errors gracefully logging Log messages and output
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants