FIX 处理gitea client 返回信息

This commit is contained in:
Jasder 2020-05-18 18:18:53 +08:00
parent 7247be6c6c
commit 4ff7009645
1 changed files with 2 additions and 0 deletions

View File

@ -143,6 +143,8 @@ class Gitea::ClientService < ApplicationService
when 409
message = "创建失败,请检查该分支合并是否已存在"
raise Error, mark + message
when 403
{status: 403, message: '你没有权限操作!'}
else
if response&.body.blank?
message = "请求失败"