diff options
author | George Goldberg <george@gberg.me> | 2017-08-25 11:04:37 +0100 |
---|---|---|
committer | Saturnino Abril <saturnino.abril@gmail.com> | 2017-08-25 18:04:37 +0800 |
commit | 1a2a02440c4e66d7f4869f3d24b4731c8df81fcf (patch) | |
tree | 452887dac94125b7b1152ced0f85ded11d9b092e /manualtesting | |
parent | f6e0310b502f5075659eb5a830d88e2026ee5f50 (diff) | |
download | chat-1a2a02440c4e66d7f4869f3d24b4731c8df81fcf.tar.gz chat-1a2a02440c4e66d7f4869f3d24b4731c8df81fcf.tar.bz2 chat-1a2a02440c4e66d7f4869f3d24b4731c8df81fcf.zip |
Other Packages: NewLocAppError -> NewAppError (#7283)
Diffstat (limited to 'manualtesting')
-rw-r--r-- | manualtesting/manual_testing.go | 2 | ||||
-rw-r--r-- | manualtesting/test_autolink.go | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/manualtesting/manual_testing.go b/manualtesting/manual_testing.go index 4e6baf8b0..6d16492d8 100644 --- a/manualtesting/manual_testing.go +++ b/manualtesting/manual_testing.go @@ -39,7 +39,7 @@ func manualTest(c *api.Context, w http.ResponseWriter, r *http.Request) { // URL Parameters params, err := url.ParseQuery(r.URL.RawQuery) if err != nil { - c.Err = model.NewLocAppError("/manual", "manaultesting.manual_test.parse.app_error", nil, "") + c.Err = model.NewAppError("/manual", "manaultesting.manual_test.parse.app_error", nil, "", http.StatusBadRequest) return } 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{ |