迁移异常处理

This commit is contained in:
xxqfamous 2023-06-07 16:31:08 +08:00
parent 4591ef2df3
commit 6f33016a78
1 changed files with 3 additions and 0 deletions

View File

@ -34,6 +34,9 @@ class Gitea::Repository::MigrateService < Gitea::ClientService
response = post(url, request_params)
render_response(response)
rescue => e
puts "MigrateService error: #{e.message}"
[500, e.message, ""]
end
private