Skip to content

CLI Authentication Error Messaging #16

@cameron-jones-volusion

Description

@cameron-jones-volusion
  • I'm submitting...

    • a bug report.
    • [ x] a feature request.
    • a support request.
    • a documentation update.
    • something else.
  • What is the current behavior?
    When not logged in to the CLI, attempting to perform actions that require authorization gives the following unhelpful error:

image

  • What is the expected behavior?
    If a user attempts to run commands without logging in, the CLI should prompt the user to log in.
    If a logged-in user runs a command resulting in a 403 error, the CLI should output the current username (in case the user is logged in to the wrong account).

  • What is the motivation / use case for changing the behavior?
    Improve user experience.

  • Please tell us about your environment:

    • Version (use element -v): 2.0.2
    • OS: macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions