summaryrefslogtreecommitdiffstats
path: root/models/user.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/user.go')
-rw-r--r--models/user.go3
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()