Skip to content

Handle service account errors by status code and print custom messages #408

@craicoverflow

Description

@craicoverflow

The default status message from the service account endpoints is the status code. We should perform a switch statement on these status codes and display a more informative error message.

How it is now:

Error: unable to delete service account: 500

How it should be:

internal server error

How to do this:

Follow how the topic commands handle this:

https://github.com/bf2fc6cc711aee1a0c2a/cli/blob/d77df461146a8652b903772e7a88b1520e3f19be/pkg/cmd/kafka/topic/delete/delete.go#L156-L186

Metadata

Metadata

Assignees

Labels

devexpIssues related to developer experience

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions