迁移异常处理
This commit is contained in:
parent
4591ef2df3
commit
6f33016a78
|
@ -34,6 +34,9 @@ class Gitea::Repository::MigrateService < Gitea::ClientService
|
||||||
response = post(url, request_params)
|
response = post(url, request_params)
|
||||||
|
|
||||||
render_response(response)
|
render_response(response)
|
||||||
|
rescue => e
|
||||||
|
puts "MigrateService error: #{e.message}"
|
||||||
|
[500, e.message, ""]
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
Loading…
Reference in New Issue