-
Notifications
You must be signed in to change notification settings - Fork 7
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
feat: refactor schema error handling from Go #1308
Conversation
265c9ba
to
9279b61
Compare
9279b61
to
58502bf
Compare
if err := os.RemoveAll(filepath.Join(module.AbsDeployDir(), module.Errors)); err != nil { | ||
return fmt.Errorf("failed to clear errors: %w", err) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
backend/schema/errors.go
Outdated
if len(merr) == 0 { | ||
return | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly just for my info, but is this check needed? Would just sort.Slice
on an empty slice do the same thing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nope you're totally right - removed!
- no longer pass Go compiler errors through the LSP - instead of attempting to parse out schema/build errors from an aggregate error, we pass back schema errors and non-schema errors ("real" exceptions) explicitly and separately fixes #1299
58502bf
to
0a46d7a
Compare
fixes #1299