From 1a2a02440c4e66d7f4869f3d24b4731c8df81fcf Mon Sep 17 00:00:00 2001 From: George Goldberg Date: Fri, 25 Aug 2017 11:04:37 +0100 Subject: Other Packages: NewLocAppError -> NewAppError (#7283) --- manualtesting/test_autolink.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'manualtesting/test_autolink.go') diff --git a/manualtesting/test_autolink.go b/manualtesting/test_autolink.go index 190185835..a2e02dc96 100644 --- a/manualtesting/test_autolink.go +++ b/manualtesting/test_autolink.go @@ -7,6 +7,7 @@ import ( l4g "github.com/alecthomas/log4go" "github.com/mattermost/platform/model" "github.com/mattermost/platform/utils" + "net/http" ) const LINK_POST_TEXT = ` @@ -24,7 +25,7 @@ func testAutoLink(env TestEnvironment) *model.AppError { l4g.Info(utils.T("manaultesting.test_autolink.info")) channelID, err := getChannelID(model.DEFAULT_CHANNEL, env.CreatedTeamId, env.CreatedUserId) if err != true { - return model.NewLocAppError("/manualtest", "manaultesting.test_autolink.unable.app_error", nil, "") + return model.NewAppError("/manualtest", "manaultesting.test_autolink.unable.app_error", nil, "", http.StatusInternalServerError) } post := &model.Post{ -- cgit v1.2.3-1-g7c22