Fixing formating on SQL errors for get parent posts. (#7965)

Этот коммит содержится в:
Christopher Speller
2017-12-12 05:15:32 -08:00
коммит произвёл Joram Wilander
родитель 4c17bdff1b
Коммит fa9aa85705

Просмотреть файл

@@ -696,7 +696,7 @@ func (s SqlPostStore) getParentsPosts(channelId string, offset int, limit int) s
ORDER BY CreateAt`, ORDER BY CreateAt`,
map[string]interface{}{"ChannelId1": channelId, "Offset": offset, "Limit": limit, "ChannelId2": channelId}) map[string]interface{}{"ChannelId1": channelId, "Offset": offset, "Limit": limit, "ChannelId2": channelId})
if err != nil { 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 { } else {
result.Data = posts result.Data = posts
} }