Skip to content

Change "FromHere" error messages to be a more direct error#6807

Open
danakj wants to merge 7 commits intocarbon-language:trunkfrom
danakj:from-here-error-messages
Open

Change "FromHere" error messages to be a more direct error#6807
danakj wants to merge 7 commits intocarbon-language:trunkfrom
danakj:from-here-error-messages

Conversation

@danakj
Copy link
Contributor

@danakj danakj commented Feb 27, 2026

These messages used to be annotation notes. Now they are error messages. However they are in a position where they require some ErrorContext to exist (type completion internals require CheckHasContext to be true), so we do know they will end up being transformed into notes. Regardless, as they are errors, phrase them in terms of a failure instead of as an annotation.

Depends on #6806

@danakj danakj requested a review from a team as a code owner February 27, 2026 15:48
@danakj danakj added the dependent Depends on another issue/PR label Feb 27, 2026
@danakj danakj requested a review from a team as a code owner February 27, 2026 15:48
@danakj danakj requested review from zygoloid and removed request for a team February 27, 2026 15:48
@danakj
Copy link
Contributor Author

danakj commented Feb 27, 2026

First new commit is from-here-error-messages

@danakj danakj requested review from a team and removed request for a team February 27, 2026 15:48
@danakj danakj removed the proposal A proposal label Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependent Depends on another issue/PR toolchain

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant