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

Fix dashboard not found error msg #14849

Merged
merged 1 commit into from Nov 1, 2022
Merged

Conversation

barrettj12
Copy link
Contributor

The juju dashboard command was displaying an unfriendly error when the dashboard was not deployed/available:

$ juju dashboard
ERROR getting dashboard address for controller "foo": dashboard address in relation data not found

The error returned from the API client was not being converted to a juju/errors error. We just need to use the params.TranslateWellKnownError function to convert this to an error that we can pattern match against.

QA steps

$ juju bootstrap lxd c
$ juju dashboard
The Juju dashboard is not yet deployed.
To deploy the Juju dashboard, follow these steps:
  juju switch controller
  juju deploy juju-dashboard
  juju expose juju-dashboard
  juju relate juju-dashboard controller

Bug reference

https://bugs.launchpad.net/juju/+bug/1994953

@barrettj12
Copy link
Contributor Author

/merge

1 similar comment
@barrettj12
Copy link
Contributor Author

/merge

@jujubot jujubot merged commit c3c40cd into juju:3.0 Nov 1, 2022
jujubot added a commit that referenced this pull request Nov 2, 2022
@barrettj12 barrettj12 deleted the dashboard-ux branch November 3, 2022 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants