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