Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Propagate auth errors from service #3609

Draft
wants to merge 5 commits into
base: version/0-48-0-RC1
Choose a base branch
from
Draft

Conversation

MDrakos
Copy link
Member

@MDrakos MDrakos commented Nov 26, 2024

StoryDX-3164 We have a message queue that informs users of auth issues

I realized when implementing this that we didn't mock out how we want the errors, and other message types, to be displayed. I imagine we'll want to figure that out before going forward. Here is how it looks now (Note that the error message is displayed in red):

➜  cli git:(DX-3164) ACTIVESTATE_API_KEY=oops ./build/state --version

The State Service reported an invalid API token error: Invalid API token
Please check your API token and try again.


ActiveState CLI by ActiveState Software Inc.
License BSD 3
Version 0.48.0-SHAe4beb1ed6
Revision e4beb1ed644a789382ca03a5f62df643dd06f76d
Channel DX-3164
Built Wed Nov 27 2024 15:33:22 -0800 PST (dev)

➜  cli git:(DX-3164) ACTIVESTATE_API_KEY=oops ./build/state --version
ActiveState CLI by ActiveState Software Inc.
License BSD 3
Version 0.48.0-SHAe4beb1ed6
Revision e4beb1ed644a789382ca03a5f62df643dd06f76d
Channel DX-3164
Built Wed Nov 27 2024 15:33:22 -0800 PST (dev)

@github-actions github-actions bot changed the base branch from master to version/0-48-0-RC1 November 26, 2024 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant