summaryrefslogtreecommitdiffstats
path: root/store
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-07-05 23:19:05 -0800
committer=Corey Hulen <corey@hulen.com>2015-07-05 23:19:05 -0800
commite26954ef461d486744773f9d3a2236bd864fa1a3 (patch)
tree87bf2eeafa8862a5663b33cac76d692b9ef5f5ca /store
parentb95e053d41582866bf5f77ef69f784843c37676b (diff)
downloadchat-e26954ef461d486744773f9d3a2236bd864fa1a3.tar.gz
chat-e26954ef461d486744773f9d3a2236bd864fa1a3.tar.bz2
chat-e26954ef461d486744773f9d3a2236bd864fa1a3.zip
adding debugging
Diffstat (limited to 'store')
-rw-r--r--store/sql_user_store.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/store/sql_user_store.go b/store/sql_user_store.go
index abb8f2781..36785fa38 100644
--- a/store/sql_user_store.go
+++ b/store/sql_user_store.go
@@ -137,7 +137,7 @@ func (us SqlUserStore) Update(user *model.User, allowRoleActiveUpdate bool) Stor
if count, err := us.GetMaster().Update(user); err != nil {
result.Err = model.NewAppError("SqlUserStore.Update", "We encounted an error updating the account", "user_id="+user.Id+", "+err.Error())
} else if count != 1 {
- result.Err = model.NewAppError("SqlUserStore.Update", "We couldn't update the account", "user_id="+user.Id)
+ result.Err = model.NewAppError("SqlUserStore.Update", "We couldn't update the account", "user_id="+user.Id+" count="+count)
} else {
result.Data = [2]*model.User{user, oldUser}
}