ballerina-update-tool icon indicating copy to clipboard operation
ballerina-update-tool copied to clipboard

Improve the printed error messages when API server is not reachable

Open anuruddhal opened this issue 6 months ago • 0 comments

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 avatar Aug 29 '24 08:08 anuruddhal