Option To Return Errors As JSON
Hi,
When using the --output json
I would expect the errors to be returned as JSON just like the success output. However, the output for errors seems to continue to be a flat string.
It would be helpful from a scripting perspective to have the output as JSON when requested so we can include better logic in our scripts when errors occur. For example:
{
"code": "409",
"message": "The cluster name already exists"
}
Please let me know if you need more information about the request.
Thanks,
2
votes
Nicolas
shared this idea
Hi Nic,
Thank you for taking the time to raise this request. We'll look into it and update this feedback when we decide to roadmap it for the near future.
Thank you,
Jakub