Skip to content

create pull request" createpullreqeust"#1833

Open
Edison-T wants to merge 1 commit intohttpie:masterfrom
Edison-T:improve-error-message
Open

create pull request" createpullreqeust"#1833
Edison-T wants to merge 1 commit intohttpie:masterfrom
Edison-T:improve-error-message

Conversation

@Edison-T
Copy link
Copy Markdown

Problem

When users pass values with spaces without quoting (e.g., name=Foo Bar), HTTPie returns an error message like:

argument REQUEST_ITEM: 'Bar' is not a valid value

This message can be confusing, especially for users unfamiliar with how the shell splits arguments.

Solution

This change improves the error message by adding a helpful hint suggesting that values containing spaces should be quoted.

Example

Before:

argument REQUEST_ITEM: 'Bar' is not a valid value

After:

argument REQUEST_ITEM: 'Bar' is not a valid value

Hint: If your value contains spaces, quote it.
Example: name='Foo Bar'

Notes

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