]> source.dussan.org Git - gitea.git/commitdiff
Work on ssh key issue
authorUnknwon <joe2010xtmf@163.com>
Sun, 12 Oct 2014 00:06:35 +0000 (20:06 -0400)
committerUnknwon <joe2010xtmf@163.com>
Sun, 12 Oct 2014 00:06:35 +0000 (20:06 -0400)
models/publickey.go

index 8bb924e8537ec9e2aaaf3d7da6377cf4c49ed095..dbfed46cb7084ffac2fc59c46cebe5ea77edca1a 100644 (file)
@@ -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.