summaryrefslogtreecommitdiffstats
path: root/app/ldap.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/ldap.go')
-rw-r--r--app/ldap.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/ldap.go b/app/ldap.go
index 17c24db8f..e3c90b263 100644
--- a/app/ldap.go
+++ b/app/ldap.go
@@ -18,7 +18,7 @@ func SyncLdap() {
if ldapI := einterfaces.GetLdapInterface(); ldapI != nil {
ldapI.SyncNow()
} else {
- l4g.Error("%v", model.NewLocAppError("SyncLdap", "ent.ldap.disabled.app_error", nil, "").Error())
+ l4g.Error("%v", model.NewAppError("SyncLdap", "ent.ldap.disabled.app_error", nil, "", http.StatusNotImplemented).Error())
}
}
}()
@@ -31,8 +31,7 @@ func TestLdap() *model.AppError {
return err
}
} else {
- err := model.NewLocAppError("TestLdap", "ent.ldap.disabled.app_error", nil, "")
- err.StatusCode = http.StatusNotImplemented
+ err := model.NewAppError("TestLdap", "ent.ldap.disabled.app_error", nil, "", http.StatusNotImplemented)
return err
}