Skip to content

"rosa whoami --output json" errors are not json #3193

@ktdreyer

Description

@ktdreyer

When I don't have a valid rosa token, I would expect --output json to give me an error in JSON, rather than printing non-JSON output

rosa whoami --output json
E: Failed to create OCM connection: error creating connection. Not able to get authentication token: access and refresh tokens are unavailable or expired, and there are no password or client secret to request new ones

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions