From 75aab86a8dcc008f7da5fa76e4637c1839263fc2 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Mon, 2 Nov 2015 14:01:19 -0500 Subject: fix problem with #1879 --- models/publickey.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'models/publickey.go') diff --git a/models/publickey.go b/models/publickey.go index 04ae4c42fc..68e078ac85 100644 --- a/models/publickey.go +++ b/models/publickey.go @@ -243,7 +243,7 @@ func CheckPublicKeyString(content string) (_ string, err error) { } keyType := strings.Trim(sshKeygenOutput[len(sshKeygenOutput)-1], " ()") if minimumKeySize := setting.Service.MinimumKeySizes[keyType]; minimumKeySize == 0 { - return "", errors.New("sorry, unrecognized public key type") + return "", fmt.Errorf("unrecognized public key type: %s", keyType) } else if keySize < minimumKeySize { return "", fmt.Errorf("the minimum accepted size of a public key %s is %d", keyType, minimumKeySize) } -- cgit v1.2.3