summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-10-11 20:06:35 -0400
committerUnknwon <joe2010xtmf@163.com>2014-10-11 20:06:35 -0400
commitb7b7863364b9dae96a4d4a1a78089742e10c5322 (patch)
tree9717dcad6a2aaa672667c753311af8598fe94cfc /models
parent3005c4f6db725e0e637987d3ac154865526c1363 (diff)
downloadgitea-b7b7863364b9dae96a4d4a1a78089742e10c5322.tar.gz
gitea-b7b7863364b9dae96a4d4a1a78089742e10c5322.zip
Work on ssh key issue
Diffstat (limited to 'models')
-rw-r--r--models/publickey.go2
1 files changed, 1 insertions, 1 deletions
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.