summaryrefslogtreecommitdiffstats
path: root/store
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-07-05 23:28:45 -0800
committer=Corey Hulen <corey@hulen.com>2015-07-05 23:28:45 -0800
commitf2db93f111702896775a40302cf5e1f368499c74 (patch)
tree3616ed73b0b2e6dc099591bc77687a0c2d7c9f2e /store
parente26954ef461d486744773f9d3a2236bd864fa1a3 (diff)
downloadchat-f2db93f111702896775a40302cf5e1f368499c74.tar.gz
chat-f2db93f111702896775a40302cf5e1f368499c74.tar.bz2
chat-f2db93f111702896775a40302cf5e1f368499c74.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 36785fa38..bcaff1487 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+" count="+count)
+ result.Err = model.NewAppError("SqlUserStore.Update", "We couldn't update the account", fmt.Sprintf("user_id=%v, count=%v", user.Id, count))
} else {
result.Data = [2]*model.User{user, oldUser}
}