Skip to content

Surface publish RPC errors back to the publish futures#5124

Merged
theacodes merged 4 commits into
googleapis:masterfrom
theacodes:fix-publish-errors
Mar 28, 2018
Merged

Surface publish RPC errors back to the publish futures#5124
theacodes merged 4 commits into
googleapis:masterfrom
theacodes:fix-publish-errors

Conversation

@theacodes
Copy link
Copy Markdown
Contributor

Closes #5017, Related #4914

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 28, 2018

# Make the API throw an error when publishing.
error = google.api_core.exceptions.InternalServerError('uh oh')
types.PublishResponse(message_ids=['a'])

This comment was marked as spam.

This comment was marked as spam.

for future in self._futures:
future.set_exception(exception)

_LOGGER.error(

This comment was marked as spam.

This comment was marked as spam.

@theacodes theacodes merged commit 2880fef into googleapis:master Mar 28, 2018
@theacodes theacodes deleted the fix-publish-errors branch March 28, 2018 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants