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 the printed error messages when API server is not reachable #364

Open
anuruddhal opened this issue Aug 29, 2024 · 0 comments
Open
Assignees

Comments

@anuruddhal
Copy link
Member

anuruddhal commented Aug 29, 2024

Description:
When the update tool is unable to connect to the API server it prints the following error. https://github.com/ballerina-platform/ballerina-update-tool/blob/master/src/main/java/org/ballerinalang/command/util/ToolUtil.java#L790

tool version 1.4.2 not found 

It occurs when the response code from the update tool API is not 200 or 302. We need to improve the error message to print the actual cause.

Describe your problem(s)

Describe your solution(s)

Related Issues (optional):

Suggested Labels (optional):

Suggested Assignees (optional):

@anuruddhal anuruddhal changed the title Improve the error message Improve the error messages when API server is not reachable Aug 29, 2024
@anuruddhal anuruddhal changed the title Improve the error messages when API server is not reachable Improve the printed error messages when API server is not reachable Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants