summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2017-12-12 05:15:32 -0800
committerJoram Wilander <jwawilander@gmail.com>2017-12-12 08:15:32 -0500
commitfa9aa85705a86db8091aba2b4ff064e127c940ff (patch)
tree9687f9ea2f11ef740b13966af12aa9c53feee585
parent4c17bdff1bb871fb31520b7b547f584c53ed854f (diff)
downloadchat-fa9aa85705a86db8091aba2b4ff064e127c940ff.tar.gz
chat-fa9aa85705a86db8091aba2b4ff064e127c940ff.tar.bz2
chat-fa9aa85705a86db8091aba2b4ff064e127c940ff.zip
Fixing formating on SQL errors for get parent posts. (#7965)
-rw-r--r--store/sqlstore/post_store.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/store/sqlstore/post_store.go b/store/sqlstore/post_store.go
index 2fa8f2403..c60a15ce2 100644
--- a/store/sqlstore/post_store.go
+++ b/store/sqlstore/post_store.go
@@ -696,7 +696,7 @@ func (s SqlPostStore) getParentsPosts(channelId string, offset int, limit int) s
ORDER BY CreateAt`,
map[string]interface{}{"ChannelId1": channelId, "Offset": offset, "Limit": limit, "ChannelId2": channelId})
if err != nil {
- result.Err = model.NewAppError("SqlPostStore.GetLinearPosts", "store.sql_post.get_parents_posts.app_error", nil, "channelId="+channelId+err.Error(), http.StatusInternalServerError)
+ result.Err = model.NewAppError("SqlPostStore.GetLinearPosts", "store.sql_post.get_parents_posts.app_error", nil, "channelId="+channelId+" err="+err.Error(), http.StatusInternalServerError)
} else {
result.Data = posts
}