Repository navigation
Conversation
optout21
force-pushed
the
2606-assert-msg2
branch
7 times, most recently
from
September 3, 2026 10:43
b1cf1b4 to
fa8806b
Compare
The error message generated by Assert, Assume, and CHECK_NONFATAL contained the failing assertion condition text, but it was unclear whether that's the failed expectation or the actual case. E.g. "Internal bug detected: pindex != nullptr" meant that pindex == nullptr. Clarify the situation, by including "`%s` check failed". The above example is now: "Internal bug detected: `pindex != nullptr` check failed".
Rename only. Use a more descriptive naming, the helper is for abort.
Unreachable error also honors `G_ABORT_ON_FAILED_ASSUME`, and if set, it aborts instead of throwing. The condition checking `G_ABORT_ON_FAILED_ASSUME` has been extracted into a new helper, `check_non_fatal_fail()`, and it is reused.
optout21
force-pushed
the
2606-assert-msg2
branch
from
September 3, 2026 10:50
fa8806b to
6494a7e
Compare
Owner
Author
|
Included in bitcoin#35461, closing. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
bitcoin#35461 (comment)
Change NONFATAL_UNREACHABLE to abort if G_ABORT_ON_FAILED_ASSUME is set