Skip to content

Error Handling: replace ConsumeValue with GetValueOrThrow.#9464

Merged
ysiraichi merged 3 commits intomasterfrom
ysiraichi/replace-consume-value
Jul 12, 2025
Merged

Error Handling: replace ConsumeValue with GetValueOrThrow.#9464
ysiraichi merged 3 commits intomasterfrom
ysiraichi/replace-consume-value

Conversation

@ysiraichi
Copy link
Copy Markdown
Collaborator

This PR replaces uses of ConsumeValue() (at debug_macros.h) with GetValueOrThrow() (at status.h). These changes improve error handling by not crashing when non-ok status values are returned.

@ysiraichi ysiraichi force-pushed the ysiraichi/replace-consume-value branch from d91fcae to c7e90df Compare July 9, 2025 20:33
Copy link
Copy Markdown
Collaborator

@zhanyong-wan zhanyong-wan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@ysiraichi ysiraichi merged commit 51518f9 into master Jul 12, 2025
23 of 24 checks passed
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.

3 participants