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

Improve error reporting et al. #360

Merged
merged 4 commits into from
Dec 18, 2024

Conversation

teo-tsirpanis
Copy link
Member

  • All error messages start with a lower-case letter.
  • Errors are formatted with the %w specifier, which wraps them.
  • All other warnings are fixed.
  • Functions that wrap APIs that report errors in a tiledb_error_t* were refactored to use a common function for formatting the error, and wrapping the C API message inside the Go API message.
  • Fixed error handling of NewVFS.

* All error messages start with a lower-case letter.
* Errors are formatted with the `%w` specifier, which wraps them.
* All other warnings are fixed.
Formatting is done in a separate function, and it returns a dedicated error that gets wrapped.
@teo-tsirpanis teo-tsirpanis marked this pull request as ready for review December 17, 2024 23:50
@teo-tsirpanis teo-tsirpanis requested a review from a team as a code owner December 17, 2024 23:50
Copy link
Contributor

@antalakas antalakas left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Collaborator

@NullHypothesis NullHypothesis left a comment

Choose a reason for hiding this comment

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

Looking good! I left a bunch of minor comments.

@teo-tsirpanis teo-tsirpanis merged commit f20011a into TileDB-Inc:master Dec 18, 2024
10 checks passed
@teo-tsirpanis teo-tsirpanis deleted the improve-errors branch December 18, 2024 15: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.

3 participants