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

Update batch_sql_test.go #22

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

mdqst
Copy link

@mdqst mdqst commented Oct 27, 2024

Here’s the updated Go code with enhanced error handling for HTTP status codes such as 400, 404, and 500, providing more informative error messages.

Changes:

handleErrorStatus Function: Added handling for HTTP status codes 400, 404, and 500, providing informative messages.
Updated Error Handling Calls: In both fetchResults and executeSQL, calls to handleErrorStatus are made when the response status is not 200.

This enhancement allows for clearer error reporting, aiding in troubleshooting issues when interacting with the API.

Here’s the updated Go code with enhanced error handling for HTTP status codes such as 400, 404, and 500, providing more informative error messages.
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.

1 participant