summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-10-11 18:02:48 -0400
committerUnknwon <joe2010xtmf@163.com>2014-10-11 18:02:48 -0400
commit963354c5d7e78eb9fed447ab9b9984420573649c (patch)
tree896956c024e2b26f6517ea1a8138d83a7964254f /models
parent17c1bc73833a25a5841bc5ed344f343535bf1afc (diff)
downloadgitea-963354c5d7e78eb9fed447ab9b9984420573649c.tar.gz
gitea-963354c5d7e78eb9fed447ab9b9984420573649c.zip
Add raw, history file button, and other mirror fixes
Diffstat (limited to 'models')
-rw-r--r--models/repo.go2
-rw-r--r--models/user.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/models/repo.go b/models/repo.go
index c332995198..419d034c66 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -663,7 +663,7 @@ func RepoPath(userName, repoName string) string {
func TransferOwnership(u *User, newOwner string, repo *Repository) error {
newUser, err := GetUserByName(newOwner)
if err != nil {
- return err
+ return fmt.Errorf("fail to get new owner(%s): %v", newOwner, err)
}
// Check if new owner has repository with same name.
diff --git a/models/user.go b/models/user.go
index ee8f8586d5..dc9b052ca8 100644
--- a/models/user.go
+++ b/models/user.go
@@ -488,7 +488,7 @@ func GetUserByName(name string) (*User, error) {
return user, nil
}
-// GetUserEmailsByNames returns a slice of e-mails corresponds to names.
+// GetUserEmailsByNames returns a list of e-mails corresponds to names.
func GetUserEmailsByNames(names []string) []string {
mails := make([]string, 0, len(names))
for _, name := range names {