Skip to content
Snippets Groups Projects
Commit 17d4cac2 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Rescue encoding error on controller level

parent a719bfc9
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -9,6 +9,10 @@ class ApplicationController < ActionController::Base
render "errors/gitolite", :layout => "error"
end
 
rescue_from Encoding::CompatibilityError do |exception|
render "errors/encoding", :layout => "error", :status => 404
end
rescue_from ActiveRecord::RecordNotFound do |exception|
render "errors/not_found", :layout => "error", :status => 404
end
Loading
Loading
.alert-message.block-message.error
%h3 Encoding Error
%hr
%p
Page cant be loaded cause of encoding error
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment