소스 검색

update db err convert

ls 2 년 전
부모
커밋
d8783f0486
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      db/config.go

+ 2 - 0
db/config.go

@@ -75,6 +75,8 @@ func ReplyToReplyData(reply Reply) *myth.ReplyData {
 			status = myth.ErrDataExists
 		case ErrNotFound:
 			status = myth.ErrDataNotFound
+		case ErrDataNotFound:
+			status = myth.ErrDataNotFound
 		case ErrAuthorized:
 			status = myth.ErrUnAuthorized
 		case ErrNotConnect: