summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/controllers/application_controller.rb2
-rw-r--r--lib/extracts_path.rb4
2 files changed, 5 insertions, 1 deletions
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