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

compiler: fix formatting of large messages #3974

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

laytan
Copy link
Sponsor Collaborator

@laytan laytan commented Jul 24, 2024

Was looking at #3970 which crashes because it tries to print a big error message, looks like that code was just extremely busted? Here is an attempt at fixing, after this the actual error for that issue is showing (although truncated).

@laytan laytan requested a review from gingerBill July 24, 2024 00:17
@laytan
Copy link
Sponsor Collaborator Author

laytan commented Jul 24, 2024

I realise now this might need to return -1 when it went out of bounds to let callers deal with the fact it did (instead of truncating). Will look at that later.

@laytan laytan marked this pull request as draft July 28, 2024 12:24
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.

1 participant