aboutsummaryrefslogtreecommitdiffstats
path: root/models/error.go
diff options
context:
space:
mode:
authorLukas Prettenthaler <zyclonite@users.noreply.github.com>2019-04-26 17:01:54 +0200
committerLauris BH <lauris@nix.lv>2019-04-26 18:01:54 +0300
commit81059a2567be0cd811ca10e3545282c9aa53276a (patch)
treeff8f31323a2d14f30d7ca87c2028ba3d2266539d /models/error.go
parentf6eedd4dc8fb10df869750c69e2bead0521ec0eb (diff)
downloadgitea-81059a2567be0cd811ca10e3545282c9aa53276a.tar.gz
gitea-81059a2567be0cd811ca10e3545282c9aa53276a.zip
LDAP: ignore already existing public keys after ldap sync (#6766)
* fix type in public key exist error, only log trace for ldap public key import if existing Signed-off-by: Lukas Prettenthaler <lukas@noenv.com> * cleanup switch statement Signed-off-by: Lukas Prettenthaler <lukas@noenv.com> * replace switch with if, fix log formatting Signed-off-by: Lukas Prettenthaler <lukas@noenv.com> * fix formatting Signed-off-by: Lukas Prettenthaler <lukas@noenv.com>
Diffstat (limited to 'models/error.go')
-rw-r--r--models/error.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/error.go b/models/error.go
index febe3f3e04..c3495b28d7 100644
--- a/models/error.go
+++ b/models/error.go
@@ -318,7 +318,7 @@ func IsErrKeyAlreadyExist(err error) bool {
}
func (err ErrKeyAlreadyExist) Error() string {
- return fmt.Sprintf("public key already exists [owner_id: %d, finter_print: %s, content: %s]",
+ return fmt.Sprintf("public key already exists [owner_id: %d, finger_print: %s, content: %s]",
err.OwnerID, err.Fingerprint, err.Content)
}