8000 Add CodeLocation to most Morphir errors by alexsieland · Pull Request #711 · finos/morphir-scala · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add CodeLocation to most Morphir errors #711

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

Merged
merged 5 commits into from
Sep 11, 2024

Conversation

alexsieland
Copy link
Contributor
@alexsieland alexsieland commented Sep 10, 2024

This code breaks out the CodeLocation into the individual errors themselves. This unfortunately does not yet allow for the elimination of the TopLevelError, but it gets everything closer to eliminating it. In most scenarios, CodeLocation should be available, but there are spots where no obvious location maps to the error. As such, making the CodeLocation option seems sensable. Also, given a stack of CodeLocations, only the top of the stack will be considered the "location" for the purpose of AttachedLocation.

@alexsieland alexsieland marked this pull request as ready for review September 10, 2024 18:52
Copy link
Contributor
@michelchan michelchan left a comment

Choose a reason for hiding this comment

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

lgtm

@michelchan michelchan merged commit 7724dff into finos:main Sep 11, 2024
9 of 10 checks passed
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.

2 participants
0