Skip to content

Pass transactor errors to the caller if possible - #5144

Merged
tomasmik merged 2 commits into
masterfrom
pass-errors
May 26, 2022
Merged

Pass transactor errors to the caller if possible#5144
tomasmik merged 2 commits into
masterfrom
pass-errors

Conversation

@tomasmik

Copy link
Copy Markdown
Contributor

If possible we should pass transactor errors to the caller.
This allows us to return custom errors straight from transactor if
needed. For example we should be able to handle fee errors with custom
code field.

This change comes before actual new values are being returned from
transactor as to no break the UI too much.

If no updated error is returned and cannot be forwarded old API errors are used, so this does not break the API.

Updates: https://github.com/mysteriumnetwork/transactor/issues/422

If possible we should pass transactor errors to the caller.
This allows us to return custom errors straight from transactor if
needed. For example we should be able to handle fee errors with custom
`code` field.

This change comes before actual new values are being returned from
transactor as to no break the UI too much.
@tomasmik
tomasmik merged commit 4d8847e into master May 26, 2022
@tomasmik
tomasmik deleted the pass-errors branch May 26, 2022 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants