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

Return a Promise from report method #50

Merged
merged 2 commits into from
Nov 21, 2018

Conversation

bz2
Copy link
Contributor

@bz2 bz2 commented Nov 20, 2018

Remove the callback argument from StackdriverErrorReporter report() and sendErrorPayload() and instead return a Promise that resolves once both the stacktrace is generated and the XHR request completes.

Update tests to return promises to the framework rather than use the done() callback where possible.

Suppress promise rejections in for top level error handlers to avoid potential loops.

Add new tests for XHR errors - these reflect current behaviour and should be updated when the
interface is more clearly defined.

Remove the callback argument from StackdriverErrorReporter report()
and sendErrorPayload() and instead return a Promise that resolves
once both the stacktrace is generated and the XHR request completes.

Update tests to return promises to the framework rather than use the
done() callback where possible.

Suppress promise rejections in for top level error handlers to avoid
potential loops.
These reflect current behaviour and should be updated when the
interface is more clearly defined.
@bz2 bz2 mentioned this pull request Nov 20, 2018
9 tasks
@steren steren merged commit e4b3aff into GoogleCloudPlatform:master Nov 21, 2018
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