Skip to content

fix: report invalid --data-part JSON as a usage error - #110

Open
ConnorMoss02 wants to merge 1 commit into
a2aproject:mainfrom
ConnorMoss02:fix/data-part-usage-error
Open

ConnorMoss02 wants to merge 1 commit into
a2aproject:mainfrom
ConnorMoss02:fix/data-part-usage-error

Conversation

@ConnorMoss02

Copy link
Copy Markdown
Contributor

--data-part with bad JSON now returns clierr.Usage (exit 2), like --request-payload and --file-part. Added a TestUsageErrors row. It fails without the fix.

Fixes #109

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.

bug: invalid --data-part JSON exits 1 instead of a usage error

1 participant