Browse Source

update err

ls 2 năm trước cách đây
mục cha
commit
df1476d7f4
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      db/config.go

+ 2 - 0
db/config.go

@@ -87,6 +87,8 @@ func ReplyToReplyData(reply Reply) *myth.ReplyData {
 			status = myth.ErrNotAllowed
 		case ErrCreditLimit:
 			status = myth.ErrNotAllowed
+		default:
+			status = myth.ErrException
 		}
 		return myth.ReplyErr(status, reply.LastErr.Error())
 	}