Skip to content

Handle error response normally #169

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 1 commit into from
Apr 15, 2025
Merged

Conversation

78wesley
Copy link
Contributor

@78wesley 78wesley commented Mar 8, 2025

Thank you for submitting this pull request! We appreciate you spending the time to work on these changes.

What is the motivation?

Handle error response normally within the exception.

Type of Change

  • 📚 Examples / docs / tutorials / dependencies update
  • 🔧 Bug fix (non-breaking change which fixes an issue)
  • 🥂 Improvement (non-breaking change which improves an existing feature)
  • 🚀 New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to change)
  • 🔐 Security fix

What does this change do?

When the exception got hit, then you can do something with the error.

What is your testing strategy?

I've test it within my python FastHTML app. Now I can use the error to display a toast message.

Is this related to any issues?

No.

Have you read the Contributing Guidelines?

Sorry, something went wrong.

@maxwellflitton maxwellflitton merged commit 42d5c8b into surrealdb:main Apr 15, 2025
@maxwellflitton
Copy link
Contributor

@78wesley sorry for the late response on this, thanks for making the pull request I have now merged it

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.

None yet

2 participants