We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f166c96 commit c895557Copy full SHA for c895557
cmd/function22/helpers.go
@@ -25,6 +25,15 @@ func installEntrypoint() *cobra.Command {
25
Args: cobra.NoArgs,
26
Run: func(_ *cobra.Command, _ []string) {
27
osutil.ExitIfError(func() error {
28
+ hostKeyExists, err := osutil.Exists(defaultHostKeyFile)
29
+ if err != nil {
30
+ return err
31
+ }
32
+
33
+ if !hostKeyExists { // pro-tip
34
+ return errors.New("host key doesn't exist. create it by running $ " + os.Args[0] + " host-key-generate")
35
36
37
if allowedUsers == "" {
38
return errors.New("you need to specify allowed-users")
39
}
0 commit comments