Skip to content

Improve error message for invalid environment name #457

@smlx

Description

@smlx

Is your feature request related to a problem? Please describe.

If I typo the environment name when trying to use lagoon ssh, I get a fairly cryptic error message. For example:

$ lagoon ssh -p my-project-foo -e myenb
This SSH server does not provide shell access. SID: xxxxxxxxxxxxxxxxxxxxxx

Describe the solution you'd like
Since Lagoon knows that I have access to the project, could this error message be improved to help? For example, something like:

$ lagoon ssh -p my-project-foo -e myenb
Invalid environment: myenb. Project my-project-foo environments: myenv, myenv2.

Describe alternatives you've considered
n/a

Additional context
This might help users solve typos themselves without having to ask support.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions