-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Match internalfailed errors in formatErrorMessage() (fixes #4221…
…) (#4222) See #4221 for details and how to repro. Added tests to validate that the regex matches as expected. Didn't have time to add tests for formatErrorMessage(), but I confirmed that it correctly formats the error now: ![CleanShot 2024-06-24 at 08 54 16@2x](https://github.com/earthly/earthly/assets/10719325/f6ed2fdd-776c-4045-a959-a28f15ea4962) Also verified that it doesn't panic when the regex fails to match: ![CleanShot 2024-06-24 at 08 54 00@2x](https://github.com/earthly/earthly/assets/10719325/5a232481-2674-4501-bb84-02e94f0eaf43)
- Loading branch information
Showing
2 changed files
with
67 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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