Skip to content

fix: don't attempt to read files for errors with no region#5976

Merged
christoph-dfinity merged 2 commits intomasterfrom
christoph/human-error-no-region
Apr 7, 2026
Merged

fix: don't attempt to read files for errors with no region#5976
christoph-dfinity merged 2 commits intomasterfrom
christoph/human-error-no-region

Conversation

@christoph-dfinity
Copy link
Copy Markdown
Contributor

@christoph-dfinity christoph-dfinity commented Apr 7, 2026

Fixes #5974

I split changes into two commits to make the refactoring portion easier to review in isolation.

@christoph-dfinity christoph-dfinity requested a review from a team as a code owner April 7, 2026 09:19
@christoph-dfinity christoph-dfinity force-pushed the christoph/human-error-no-region branch 2 times, most recently from f1f3de4 to f3db863 Compare April 7, 2026 09:33
This’ll make it easier to provide a custom file reader in the JS build
of the compiler in the future.

Also moves some code around for readability.
@christoph-dfinity christoph-dfinity force-pushed the christoph/human-error-no-region branch from f3db863 to 724b50a Compare April 7, 2026 09:33
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 7, 2026

Comparing from 944903f to 724b50a:
The produced WebAssembly code seems to be completely unchanged.
In terms of gas, no changes are observed in 5 tests.
In terms of size, no changes are observed in 5 tests.

Copy link
Copy Markdown
Contributor

@crusso crusso left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for fixing so quickly!

@crusso crusso self-requested a review April 7, 2026 14:36
@christoph-dfinity christoph-dfinity added this pull request to the merge queue Apr 7, 2026
Merged via the queue into master with commit 5df40b5 Apr 7, 2026
20 checks passed
@christoph-dfinity christoph-dfinity deleted the christoph/human-error-no-region branch April 7, 2026 15:43
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.

bug: human errors fail to report all errors when one error has Source.no_region

2 participants