Fix error

This commit is contained in:
Sung Won Cho 2021-01-06 21:39:34 +11:00
commit ff2ba3c4dc

View file

@ -192,7 +192,9 @@ func logError(err error, msg string) {
}
func getStatusCode(err error) int {
switch err {
rootErr := errors.Cause(err)
switch rootErr {
case app.ErrNotFound:
case app.ErrLoginInvalid:
return http.StatusNotFound