We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bfb9389 + 4ff83f8 commit e9bae7aCopy full SHA for e9bae7a
app/controllers/admin/dashboard_controller.rb
@@ -86,7 +86,7 @@ def sync_comment
86
private
87
# GA api 请求中发生错误的处理,错误原因如 timeout 等
88
def ga_request_error(e)
89
- render :text => e.message, :status => e.try(:code) || 408 # timeout code default
+ render :text => e.message, :status => e.try(:response).try(:status) || 408 # timeout code default
90
GaClient.clear_service_account_user
91
92
# log error
0 commit comments