Skip to content

Bug: cleaner error message for non logged-in user #917

Closed
@bpmct

Description

@bpmct

OS Information

  • OS: Ubuntu 20.04

  • Architecture: x64

  • coder --version:

    Coder v0.4.0+fe23dcd Wed Apr  6 18:12:37 UTC 2022
    https:/github.com/coder/coder/commit/fe23dcd3fcb344efaaccf8b4917e29304392a202
    

Steps to Reproduce

  1. Start a new Coder instance (non dev mode)
  2. Attempt to create a template or workspace, without logging in

Expected

root@coder-repro:~/gcp-linux# coder template create
Error: status code 401: api key is invalid. Have you run "coder login [url]"?

Actual

root@coder-repro:~/gcp-linux# coder template create
Error: status code 401: api key is invalid

Metadata

Metadata

Assignees

Labels

apiArea: HTTP APIcliArea: CLI

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions