瀏覽代碼

update err

ls 2 年之前
父節點
當前提交
df1476d7f4
共有 1 個文件被更改,包括 2 次插入0 次删除
  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())
 	}