修改bug

This commit is contained in:
sylor_huang@126.com
2020-03-16 21:54:31 +08:00
parent d5069c9254
commit af62da7ae6
5 changed files with 32 additions and 61 deletions

View File

@@ -125,6 +125,7 @@ class Gitea::ClientService < ApplicationService
{status: 200}
end
when 401
""
raise Error, mark + "401"
when 422
result = JSON.parse(response&.body)