diff options
Diffstat (limited to 'modules/repository/create.go')
-rw-r--r-- | modules/repository/create.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/repository/create.go b/modules/repository/create.go index ddc001d600..8b98a37173 100644 --- a/modules/repository/create.go +++ b/modules/repository/create.go @@ -22,7 +22,7 @@ import ( // CreateRepository creates a repository for the user/organization. func CreateRepository(doer, u *user_model.User, opts models.CreateRepoOptions) (*repo_model.Repository, error) { if !doer.IsAdmin && !u.CanCreateRepo() { - return nil, models.ErrReachLimitOfRepo{ + return nil, repo_model.ErrReachLimitOfRepo{ Limit: u.MaxRepoCreation, } } @@ -83,7 +83,7 @@ func CreateRepository(doer, u *user_model.User, opts models.CreateRepoOptions) ( // Previously Gitea would just delete and start afresh - this was naughty. // So we will now fail and delegate to other functionality to adopt or delete log.Error("Files already exist in %s and we are not going to adopt or delete.", repoPath) - return models.ErrRepoFilesAlreadyExist{ + return repo_model.ErrRepoFilesAlreadyExist{ Uname: u.Name, Name: repo.Name, } |