Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

done function updated #317

Merged

Conversation

felipe-najson-ntf
Copy link
Contributor

@felipe-najson-ntf felipe-najson-ntf commented Dec 17, 2021

This pull request resolves issue #310.

If a callback function in the messages queue or the callback function passed to flush throws an error, it will trigger the .catch () handler in the axios promise chain and run the thrown error through the error handling code meant for axios errors. This also results in the callback being called twice.

@felipe-najson-ntf
Copy link
Contributor Author

@pooyaj please review this PR and let me know what do you think. Greetings

@felipe-najson-ntf felipe-najson-ntf changed the title donde function updated done function updated Dec 21, 2021
@nd4p90x nd4p90x added this to Needs Review in analytics-node Dec 22, 2021
@nd4p90x nd4p90x requested a review from pooyaj December 22, 2021 18:56
@pooyaj pooyaj merged commit 0a6aa0d into segmentio:master Jan 5, 2022
analytics-node automation moved this from Needs Review to Done Jan 5, 2022
@nd4p90x nd4p90x linked an issue Feb 2, 2022 that may be closed by this pull request
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

error thrown in callback function is caught by flush's promise .catch()
2 participants