Parcourir la source

update db err convert

ls il y a 2 ans
Parent
commit
d8783f0486
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  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: