From 8b70c11fd920834fa034a555f3060b367d1c210c Mon Sep 17 00:00:00 2001 From: Ruben Davila Date: Thu, 18 Aug 2016 23:02:48 -0500 Subject: Try to debug failing spec. --- app/controllers/application_controller.rb | 2 ++ lib/extracts_path.rb | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 634d36a4467..fe35aadc0d7 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -139,6 +139,8 @@ class ApplicationController < ActionController::Base end def render_404 + puts "CALLER OF 404" + puts caller render file: Rails.root.join("public", "404"), layout: false, status: "404" end diff --git a/lib/extracts_path.rb b/lib/extracts_path.rb index 84688f6646e..fa36ea8f202 100644 --- a/lib/extracts_path.rb +++ b/lib/extracts_path.rb @@ -109,7 +109,9 @@ module ExtractsPath @logs_path = logs_file_namespace_project_ref_path(@project.namespace, @project, @ref, @path) - rescue RuntimeError, NoMethodError, InvalidPathError + rescue RuntimeError, NoMethodError, InvalidPathError => ex + puts "ERROR on assign_ref_vars" + puts ex.backtrace render_404 end -- cgit v1.2.1