Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make --output formatting apply to error responses #106

Open
1 task done
jhg03a opened this issue May 3, 2022 · 0 comments
Open
1 task done

Make --output formatting apply to error responses #106

jhg03a opened this issue May 3, 2022 · 0 comments

Comments

@jhg03a
Copy link

jhg03a commented May 3, 2022

Prerequisites

  • Put an X between the brackets on this line if you have done all of the following:
    • Checked that your issue isn't already filed.

Description

When using the --output json formatting option on a request I received an http 400 error on from the vinyldns api, I discovered that it no longer prints using json formatting. Instead it prints a standard multiline, indented error message.

Steps to Reproduce

  1. Submit a change which will return an error to the vinyldns api
  2. Observe the output formatting not being respected

Expected behavior: I expect to get a json formatted error response when using the json output format, but it would apply equally to all output formats.

Actual behavior: Instead it prints a standard multiline, indented error message.

Reproduces how often: 100

Versions

Found in 0.10.1

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

No branches or pull requests

1 participant