From: Unknwon Date: Sun, 12 Oct 2014 00:06:35 +0000 (-0400) Subject: Work on ssh key issue X-Git-Tag: v0.9.99~1712 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b7b7863364b9dae96a4d4a1a78089742e10c5322;p=gitea.git Work on ssh key issue --- diff --git a/models/publickey.go b/models/publickey.go index 8bb924e853..dbfed46cb7 100644 --- a/models/publickey.go +++ b/models/publickey.go @@ -126,7 +126,7 @@ func CheckPublicKeyString(content string) (bool, error) { if err != nil { return false, errors.New("ssh-keygen -l -f: " + stderr) } else if len(stdout) < 2 { - return false, errors.New("ssh-keygen returned not enough output to evaluate the key") + return false, errors.New("ssh-keygen returned not enough output to evaluate the key: " + stdout) } // The ssh-keygen in Windows does not print key type, so no need go further.