Skip to content

Improve error message when namespace set in context has been removed #1738

@rkpattnaik780

Description

@rkpattnaik780

Description

Version: 0.50.0

Show more descriptive message when namespace set in the context has been removed. CLI provides limited information at the moment.

The if statement here needs to be modified to check if the error returned is a not found error and return customized error message like the one for Kafka service.

> rhoas context status         
❌ 410 Gone. Run the command in verbose mode using the -v flag to see more information

Steps to reproduce

Expected vs actual behaviour

Message displayed should be similar to what happens with Kafka:

rhoas status                              
❌ Kafka instance in your context doesn't exist.
Your instance might have been removed.
You can update your context by creating a new instance or by using the "rhoas context set-kafka" command

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghacktoberfestpriority/important-soonMust be staffed and worked on either currently or very soon—ideally in time for the next release. Im

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions