From 5fbec91c35d7ea5d9b920b26a01fc21da55bb08e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Wed, 8 Aug 2018 12:10:05 +0200 Subject: MM-9747: Small fixes for attachments import (#9225) * MM-9747: Small fixes for attachments import * Adding unit test RootId check in replies --- api4/file.go | 1 + 1 file changed, 1 insertion(+) (limited to 'api4') diff --git a/api4/file.go b/api4/file.go index f73a54fb4..cfb72cdcb 100644 --- a/api4/file.go +++ b/api4/file.go @@ -285,6 +285,7 @@ func getFilePreview(c *Context, w http.ResponseWriter, r *http.Request) { if err != nil { c.Err = err c.Err.StatusCode = http.StatusNotFound + return } defer fileReader.Close() -- cgit v1.2.3-1-g7c22