Commit e344ff01 by Arve Knudsen Committed by GitHub

SQL: Fix missing org error messages (#26785)

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
parent 150778df
...@@ -245,9 +245,9 @@ func getOrCreateOrg(sess *DBSession, orgName string) (int64, error) { ...@@ -245,9 +245,9 @@ func getOrCreateOrg(sess *DBSession, orgName string) (int64, error) {
org.Name = mainOrgName org.Name = mainOrgName
org.Id = int64(setting.AutoAssignOrgId) org.Id = int64(setting.AutoAssignOrgId)
} else { } else {
sqlog.Info("Could not create user: organization id %v does not exist", sqlog.Error("Could not create user: organization ID does not exist", "orgID",
setting.AutoAssignOrgId) setting.AutoAssignOrgId)
return 0, fmt.Errorf("Could not create user: organization id %v does not exist", return 0, fmt.Errorf("could not create user: organization ID %d does not exist",
setting.AutoAssignOrgId) setting.AutoAssignOrgId)
} }
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment