瀏覽代碼

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: