Skip to content

Comments

fix(cli): make error message more appropriate#1817

Open
ian-fox wants to merge 1 commit intolacework:mainfrom
ian-fox:patch-1
Open

fix(cli): make error message more appropriate#1817
ian-fox wants to merge 1 commit intolacework:mainfrom
ian-fox:patch-1

Conversation

@ian-fox
Copy link

@ian-fox ian-fox commented Feb 19, 2026

Summary

When using the CLI to make an API request that returns a status code indicating an error, the CLI currently prints an error message of the form ERROR unable to send the request: <specific error details follow>

That message isn't entirely accurate, as this path is also hit if the error comes from the server - e.g. if the server returns a 4XX or 5XX response.

This change makes the message more generic so that it applies even if the error occurred after the request was sent.

How did you test this change?

No functional changes, so I think the existing test suite should be sufficient.

Issue

No issues or tickets to reference because I figured it was easier to just make the pull request.

When using the CLI to make an API request that returns a status code indicating an error, the CLI currently prints an error message of the form `ERROR unable to send the request: <specific error details follow>`
    
That message isn't entirely accurate, as this path is also hit if the
error comes from the server - e.g. if the server returns a 4XX or 5XX response. 

This change makes the message more generic so that it applies even if the error occurred after the request was sent.
    
No issues or tickets to reference because I figured it was easier to just make the pull request.
@ian-fox ian-fox requested a review from a team as a code owner February 19, 2026 15:20
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.

2 participants