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

Add support for error handler #2

Closed
relekang opened this issue Sep 7, 2018 · 0 comments
Closed

Add support for error handler #2

relekang opened this issue Sep 7, 2018 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@relekang
Copy link
Owner

relekang commented Sep 7, 2018

It would be nice to be able to handle input validation failure, e.g. api responds with some field missing.

The field "superfield" is missing.
Do you want to edit again? (Y/n)

Add option errorHandler: (error: Exception) => {retry: boolean, message: string}

@relekang relekang added the enhancement New feature or request label Sep 7, 2018
@relekang relekang self-assigned this Sep 7, 2018
@relekang relekang closed this as completed Sep 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant