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

Return error values rather than throwing #108

Merged
merged 1 commit into from
Oct 25, 2024
Merged

Conversation

crisptrutski
Copy link
Collaborator

@crisptrutski crisptrutski commented Oct 24, 2024

Closes #93

In Metabase we decided to clean up error handling based on values, as opposed to a mix semantically meaningful nil, magic keywords, and thrown exceptions.

With this change we turn (expected) exceptions into error maps. We also wrap the tables in a map, to avoid an awkward untagged union with the error maps.

Metabase has been made agnostic to these API changes, so upgrading will be easy.

Copy link
Collaborator Author

crisptrutski commented Oct 24, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @crisptrutski and the rest of your teammates on Graphite Graphite

@crisptrutski crisptrutski requested review from piranha and a team October 24, 2024 13:31
@crisptrutski crisptrutski marked this pull request as ready for review October 24, 2024 13:31
@crisptrutski crisptrutski self-assigned this Oct 24, 2024
@crisptrutski crisptrutski changed the base branch from compound-queries to graphite-base/108 October 25, 2024 07:15
@crisptrutski crisptrutski changed the base branch from graphite-base/108 to master October 25, 2024 07:16
@crisptrutski crisptrutski merged commit 4142daf into master Oct 25, 2024
5 checks passed
Copy link
Collaborator Author

Merge activity

  • Oct 25, 3:50 AM EDT: A user merged this pull request with Graphite.

@crisptrutski crisptrutski deleted the consistent-shape branch October 25, 2024 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Throw structured error messages
2 participants