Skip to content

Commit 4aa44a5

Browse files
Clarify git ssh error message (#664)
This should make it more clear that we currently only support ssh clones for the plural up process
1 parent 184ff00 commit 4aa44a5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pkg/wkspace/validator.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ func Preflight() (bool, error) {
1717
return true, utils.HighlightError(fmt.Errorf("%s not installed", req))
1818
}
1919
}
20-
fmt.Print("\nTesting if git ssh is properly configured...")
20+
fmt.Print("\nTesting if git ssh is properly configured...\n")
2121
if err := checkGitSSH(); err != nil {
22-
return true, err
22+
fmt.Printf("%s\n\n", err.Error())
23+
utils.Warn("Please ensure that you have ssh keys set up for git and that you've added them to your ssh agent. You can use `plural crypto ssh-keygen` to create your first ssh keys then upload the public key to your git provider.\n")
24+
return true, fmt.Errorf("git ssh is not properly configured")
2325
}
2426
fmt.Println(" \033[32m (\u2713) \033[0m") // (✔)
2527

0 commit comments

Comments
 (0)