mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 20:00:49 +08:00
更新文件失败处理
This commit is contained in:
@@ -42,6 +42,9 @@ module Gitea
|
||||
def render_result(response)
|
||||
if response.status == 200
|
||||
@result = JSON.parse(response.body)
|
||||
else
|
||||
Rails.logger.info("Gitea::Repository::Entries::UpdateService error======#{response.body}")
|
||||
@error = "更新失败"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user