Model: NewLocAppError -> NewAppError (#7450)

Этот коммит содержится в:
George Goldberg
2017-09-15 13:32:11 +01:00
коммит произвёл Joram Wilander
родитель 600beb5af3
Коммит 2be5577b88
20 изменённых файлов: 138 добавлений и 126 удалений

Просмотреть файл

@@ -4,6 +4,7 @@
package model
import (
"net/http"
"strings"
"testing"
)
@@ -27,7 +28,7 @@ func TestRandomString(t *testing.T) {
}
func TestAppError(t *testing.T) {
err := NewLocAppError("TestAppError", "message", nil, "")
err := NewAppError("TestAppError", "message", nil, "", http.StatusInternalServerError)
json := err.ToJson()
rerr := AppErrorFromJson(strings.NewReader(json))
if err.Message != rerr.Message {