From ce4f5cb3cf5c61f346af9b94f94d9b7d2fcdd78b Mon Sep 17 00:00:00 2001 From: hmhealey Date: Thu, 29 Oct 2015 11:07:45 -0400 Subject: Fixed nil pointer when failing to upload an oversized image --- api/file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api') diff --git a/api/file.go b/api/file.go index f65be145d..8afc70692 100644 --- a/api/file.go +++ b/api/file.go @@ -137,7 +137,7 @@ func uploadFile(c *Context, w http.ResponseWriter, r *http.Request) { c.Err = model.NewAppError("uploadFile", "Unable to upload image file.", err.Error()) return } else if config.Width*config.Height > MaxImageSize { - c.Err = model.NewAppError("uploadFile", "Unable to upload image file. File is too large.", err.Error()) + c.Err = model.NewAppError("uploadFile", "Unable to upload image file. File is too large.", "File exceeds max image size.") return } } -- cgit v1.2.3-1-g7c22