mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
FIX 处理gitea client 返回信息
This commit is contained in:
@@ -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 = "请求失败"
|
||||
|
||||
Reference in New Issue
Block a user