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

Static commands now reject the result promise #740

Merged
merged 1 commit into from
Aug 27, 2019

Conversation

exyi
Copy link
Member

@exyi exyi commented Aug 21, 2019

Static commands return a promise that was however never rejected (and thus completed) when an error occurs. This PR fixes the behavior, puts the reject function into every asynchronous invocation present in the static command.

It was needed to slightly change the signature of the dotvvm.staticCommandPostback function as it must signal the error with only one argument.

cc @Mylan719, this should fix your issue

@quigamdev quigamdev merged commit a65ce75 into master Aug 27, 2019
@quigamdev quigamdev deleted the static-command-PromiseReject branch September 18, 2019 15:02
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.

None yet

2 participants