diff --git a/app/brand.go b/app/brand.go index 6c1091fffc..b643842d1c 100644 --- a/app/brand.go +++ b/app/brand.go @@ -39,7 +39,7 @@ func (a *App) SaveBrandImage(imageData *multipart.FileHeader) *model.AppError { } if config.Width*config.Height > model.MaxImageSize { - return model.NewAppError("SaveBrandImage", "brand.save_brand_image.too_large.app_error", nil, err.Error(), http.StatusBadRequest) + return model.NewAppError("SaveBrandImage", "brand.save_brand_image.too_large.app_error", nil, "", http.StatusBadRequest) } file.Seek(0, 0) diff --git a/app/team.go b/app/team.go index efae735732..a9bf8ac05b 100644 --- a/app/team.go +++ b/app/team.go @@ -1361,7 +1361,7 @@ func (a *App) SetTeamIconFromMultiPartFile(teamId string, file multipart.File) * return model.NewAppError("SetTeamIcon", "api.team.set_team_icon.decode_config.app_error", nil, err.Error(), http.StatusBadRequest) } if config.Width*config.Height > model.MaxImageSize { - return model.NewAppError("SetTeamIcon", "api.team.set_team_icon.too_large.app_error", nil, err.Error(), http.StatusBadRequest) + return model.NewAppError("SetTeamIcon", "api.team.set_team_icon.too_large.app_error", nil, "", http.StatusBadRequest) } file.Seek(0, 0) diff --git a/app/user.go b/app/user.go index b04ee80243..4df91b577a 100644 --- a/app/user.go +++ b/app/user.go @@ -867,7 +867,7 @@ func (a *App) SetProfileImageFromMultiPartFile(userId string, file multipart.Fil return model.NewAppError("SetProfileImage", "api.user.upload_profile_user.decode_config.app_error", nil, err.Error(), http.StatusBadRequest) } if config.Width*config.Height > model.MaxImageSize { - return model.NewAppError("SetProfileImage", "api.user.upload_profile_user.too_large.app_error", nil, err.Error(), http.StatusBadRequest) + return model.NewAppError("SetProfileImage", "api.user.upload_profile_user.too_large.app_error", nil, "", http.StatusBadRequest) } file.Seek(0, 0)