Commit 60bb35161741338e585feedf09538f5935bba271
1 parent
4e5b3d9a
Exists in
master
and in
4 other branches
Prevent page crash if failed to parse graphs data
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/controllers/graphs_controller.rb
| ... | ... | @@ -10,7 +10,7 @@ class GraphsController < ProjectResourceController |
| 10 | 10 | format.js do |
| 11 | 11 | @repo = @project.repository |
| 12 | 12 | @stats = Gitlab::Git::GitStats.new(@repo.raw, @repo.root_ref) |
| 13 | - @log = @stats.parsed_log.to_json | |
| 13 | + @log = @stats.parsed_log.to_json rescue [] | |
| 14 | 14 | end |
| 15 | 15 | end |
| 16 | 16 | end | ... | ... |