Skip to content

ux: better error message for coder login failure #3963

Closed
@jsjoeio

Description

@jsjoeio

If you mistype your Access URL, the error message it spits out isn't super helpful.

  1. coder login https://fcca2077f06e68aaf9
  2. see error message
has initial user: do: Get "https://fcca2077f06e68aaf9/api/v2/users/first": dial tcp: lookup fcca2077f06e68aaf9 on 192.168.86.1:53: no such host
Run 'coder login --help' for usage.

If the no such host in error, we should display a friendly error message.

Metadata

Metadata

Assignees

Labels

cliArea: CLI

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions