Chore: Differentiate the ErrOrgNotFound error messages (#64131)

* Better org not found error messages
This commit is contained in:
Sofia Papagiannaki
2023-03-06 09:57:46 +02:00
committed by GitHub
parent 1aadafe7d8
commit fde96c91c1
6 changed files with 19 additions and 14 deletions

View File

@@ -139,7 +139,7 @@ func verifyExistingOrg(sess *DBSession, orgId int64) error {
return err
}
if !has {
return org.ErrOrgNotFound
return org.ErrOrgNotFound.Errorf("failed to verify existing org")
}
return nil
}