Skip to content

Make --output formatting apply to error responses #106

@jhg03a

Description

@jhg03a

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions