diff options
author | Corey Hulen <corey@hulen.com> | 2016-01-25 09:07:35 -0500 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2016-01-25 09:07:35 -0500 |
commit | 93a4e85c2d183a48f84a269c38ad4b91e9c31c14 (patch) | |
tree | 9f7cf34b9c70e76524642cf20a3b6ad3c6f3c753 /model/file_info.go | |
parent | 2a32bf20045a563c3656d89c9e70ab6d3c4505f0 (diff) | |
parent | f33cff21cf41ed060783e1eaad6c1c4838216ed2 (diff) | |
download | chat-93a4e85c2d183a48f84a269c38ad4b91e9c31c14.tar.gz chat-93a4e85c2d183a48f84a269c38ad4b91e9c31c14.tar.bz2 chat-93a4e85c2d183a48f84a269c38ad4b91e9c31c14.zip |
Merge pull request #1974 from ZBoxApp/PLT-7-models
PLT-7: Refactoring models to use translations (chunk 6)
Diffstat (limited to 'model/file_info.go')
-rw-r--r-- | model/file_info.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/model/file_info.go b/model/file_info.go index 741b4e55d..131baff6d 100644 --- a/model/file_info.go +++ b/model/file_info.go @@ -36,7 +36,7 @@ func GetInfoForBytes(filename string, data []byte) (*FileInfo, *AppError) { if mimeType == "image/gif" { // just show the gif itself instead of a preview image for animated gifs if gifImage, err := gif.DecodeAll(bytes.NewReader(data)); err != nil { - return nil, NewAppError("GetInfoForBytes", "Could not decode gif.", "filename="+filename) + return nil, NewLocAppError("GetInfoForBytes", "model.file_info.get.gif.app_error", nil, "filename="+filename) } else { hasPreviewImage = len(gifImage.Image) == 1 } |