From e480a8e2e54e1e2ebb13737d19a1e270c51ee802 Mon Sep 17 00:00:00 2001 From: jingquan huang Date: Tue, 16 Jul 2019 10:33:10 +0800 Subject: [PATCH] rep content is not exit --- app/controllers/games_controller.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/controllers/games_controller.rb b/app/controllers/games_controller.rb index 217f1839a..e5cfaf2a6 100644 --- a/app/controllers/games_controller.rb +++ b/app/controllers/games_controller.rb @@ -490,7 +490,10 @@ class GamesController < ApplicationController uid_logger("--rep_content: path is #{path}") begin @content = git_fle_content(@myshixun.repo_path, path) || "" - rescue + rescue Exception => e + if e.status == -1 + tip_exception(-3, "#{e.message}") + end if params[:retry].to_i == 1 begin begin