Skip to content

fix: report a missing --file-part or --config file as a usage error - #97

Merged
yarolegovich merged 1 commit into
a2aproject:mainfrom
ConnorMoss02:fix/local-file-errors-usage
Oct 28, 2026
Merged

yarolegovich merged 1 commit into
a2aproject:mainfrom
ConnorMoss02:fix/local-file-errors-usage

Conversation

@ConnorMoss02

Copy link
Copy Markdown
Contributor

A missing --file-part or --config file exited 3 as an IO error with a connectivity hint. Both now return a usage error and exit 2, like --request-payload and a missing agent card file.

Fixes #96

@yarolegovich yarolegovich left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the fix. ideally we should also make a2a-cli/internal/clierr/clierr.go messages more specific based on the error class

@yarolegovich
yarolegovich merged commit 7229469 into a2aproject:main Oct 28, 2026
4 checks passed
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.

Missing --file-part or --config file is reported as a network error

2 participants