From f0dcd2a175a1d38166c0fe89f400dfa8e7801dfc Mon Sep 17 00:00:00 2001 From: huang Date: Thu, 10 Aug 2017 16:29:16 +0800 Subject: [PATCH] =?UTF-8?q?game=E8=AF=84=E6=B5=8B=E7=9A=84=E6=97=B6?= =?UTF-8?q?=E5=80=99=E5=BC=82=E5=B8=B8=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/games_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/games_controller.rb b/app/controllers/games_controller.rb index 8cf3163c4..b018a0d87 100644 --- a/app/controllers/games_controller.rb +++ b/app/controllers/games_controller.rb @@ -179,10 +179,11 @@ class GamesController < ApplicationController raise("实训云平台繁忙(繁忙等级:86)") end render :json => {:result => "success", :resubmit => resubmit} - rescue + rescue Exception => e if resubmit.nil? @game.update_attributes!(:status => 0) end + logger.error("###################" + e.message) #REDO Jenkins服务异常弹框抛出 render :json => {:result => "failed"} end