Vishal-wk opened a new pull request, #2710:
URL: https://github.com/apache/iceberg-go/pull/2710

   ## Summary
   
   This PR improves error handling when an unsupported output format is 
provided to the Iceberg CLI.
   
   Previously, specifying an unsupported output format (e.g. `--output yaml`) 
resulted in a generic `unimplemented output type` error.
   
   This change:
   - Reports the invalid `--output` value in the error message.
   - Lists the supported output formats (`text`, `json`).
   - Uses the existing `logFatalf` error-handling mechanism.
   
   ## Tests
   
   Added `TestCLIRejectsUnknownOutput` to verify that:
   - An unsupported output format is rejected.
   - The error message identifies the invalid value and lists the supported 
formats.
   - The CLI exits with status code `1`.
   
   ## Validation
   
   - [x] `go test -p 1 ./...`
   - [x] `make lint`
   - [x] `git diff --check`
   
   Fixes #2082


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to