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

ssh: Show friendly error message if not installed #25

Merged
merged 1 commit into from
Feb 22, 2024
Merged

Conversation

nbrahms
Copy link
Contributor

@nbrahms nbrahms commented Feb 22, 2024

Rather than showing the error message for p0 request.

Rather than showing the error message for `p0 request`.
@nbrahms nbrahms self-assigned this Feb 22, 2024
Copy link
Contributor

@GGonryun GGonryun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, left a question about the content of the error message.

(i) => i.state === "installed" && i.type === "aws"
);
if (!items?.length) {
throw "This organization is not configured for SSH access via the P0 CLI";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we tell them how to remedy this issue in the error? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a good question. There's no good way for the end user to remedy this directly. They could ask their P0 admin to install for SSH, but I'm not sure this is more helpful to tell them?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, Komal also raised a similar concern that not every user that runs into this error will be able to resolve the issue.

Copy link
Contributor

@komal-dhull komal-dhull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@nbrahms nbrahms merged commit 7f5e7f3 into main Feb 22, 2024
2 checks passed
@nbrahms nbrahms deleted the nathan/ssh-guard branch April 2, 2024 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants