diff options
author | Unknwon <u@gogs.io> | 2015-09-13 13:26:20 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-09-13 13:26:20 -0400 |
commit | 2d1bb0cf49766e1acf5d3da824dee514ada6ff9d (patch) | |
tree | 7e03d99a2d1547a39b80d377d1b65c8836706fd5 /models | |
parent | 5f1183cecf4f3c6bf677369c4e2a2788b795ab15 (diff) | |
download | gitea-2d1bb0cf49766e1acf5d3da824dee514ada6ff9d.tar.gz gitea-2d1bb0cf49766e1acf5d3da824dee514ada6ff9d.zip |
#1633 admin delete user
Diffstat (limited to 'models')
-rw-r--r-- | models/user.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/models/user.go b/models/user.go index 5dbe6ffd21..9450860eb2 100644 --- a/models/user.go +++ b/models/user.go @@ -670,7 +670,8 @@ func DeleteUser(u *User) (err error) { } if err = deleteUser(sess, u); err != nil { - return fmt.Errorf("deleteUser: %v", err) + // Note: don't wrapper error here. + return err } return sess.Commit() |