aboutsummaryrefslogtreecommitdiff
path: root/models/errors
Commit message (Collapse)AuthorAge
* internal: move packages under this directory (#5836)Unknwon2019-10-24
| | | | | | | | | | | | | | | | | | * Rename pkg -> internal * Rename routes -> route * Move route -> internal/route * Rename models -> db * Move db -> internal/db * Fix route2 -> route * Move cmd -> internal/cmd * Bump version
* token: disallow multiple tokens with same name (#5820)Frode Aannevik2019-10-15
| | | | | | | | | | | | | | | * api/v1: don't allow multiple tokens with same name Fail with 422 Unprocessable Entity if the token name already exist ref: https://github.com/gogs/gogs/issues/5587 * Move new token error type to models/errors/token * Remove "useless" ListAccessTokensByName function * Add an i18n entry for token_name_exists
* routes/api: change status handle to new styleUnknwon2018-12-01
| | | | Also fixed one bug that did not catch team not found error.
* repo/editor: hide internal error detailUnknwon2018-08-17
| | | | Prevent exposure of server path
* auth: support authentication source config file (#3142)Unknwon2018-04-12
|
* models: move ErrBranchNotExist to errors packageUnknwon2018-03-08
|
* editor: remove out of sync branch before checkout againUnknwon2017-11-16
| | | | | | If a branch was deleted from server, sometimes it is not reflected on local copy. Therefore, we need to remove the branch with same name if it is out of sync and then checkout to correct version.
* api/repo: improve migration error handlingUnknwon2017-04-07
|
* 2fa: initial support (#945)Unknwon2017-04-06
|
* error: move ErrRepoNotExist -> errors.RepoNotExistUnknwon2017-03-23
|
* issue: fix redirect to random issue if index does not exist (#4315)Unknwon2017-03-22
|
* repo/webhook: able to retrigger delivery history (#2187)Unknwon2017-03-19
|
* models: rename ErrUserNotExist -> errors.UserNotExistUnknwon2017-03-16
|
* refactoring: experimental with models/errors packageUnknwon2017-03-12