Commit 17d4cac2 authored by randx's avatar randx

Rescue encoding error on controller level

parent a719bfc9
......@@ -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
......
.alert-message.block-message.error
%h3 Encoding Error
%hr
%p
Page cant be loaded cause of encoding error
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment