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 message for client configuration failures #371

Merged
merged 3 commits into from
Nov 20, 2024

Conversation

RDPerera
Copy link
Member

http:ClientConfiguration httpClientConfig = check config:constructHTTPClientConfig(config);
httpClientResult = trap new (config.baseUrl, httpClientConfig);

Choose a reason for hiding this comment

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

Will it handle panic situations properly?

Copy link
Member Author

Choose a reason for hiding this comment

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

@TharmiganK , Do we need to handle panics here ?

Copy link
Contributor

Choose a reason for hiding this comment

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

This is just the HTTP client initialisation right? In error situations, we explicitly return a http:ClientError rather than panicing

@RDPerera RDPerera merged commit 28b108b into ballerina-platform:patch-8.0.x Nov 20, 2024
2 checks passed
@RDPerera
Copy link
Member Author

Moved to #373

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