diff options
author | Go MAEDA <maeda@farend.jp> | 2019-05-21 23:53:10 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-05-21 23:53:10 +0000 |
commit | 6d6ea928c83b0d3ac92853e313f0859accf6e355 (patch) | |
tree | 8dee8ba5c69df714533e7a2661506cda6fa2aeb2 /app/controllers | |
parent | c9a3c6c7fd212595ae911700b6abdec7e851ee81 (diff) | |
download | redmine-6d6ea928c83b0d3ac92853e313f0859accf6e355.tar.gz redmine-6d6ea928c83b0d3ac92853e313f0859accf6e355.zip |
Custom Exception classes should inherit StandardError instead of Exception (#31387).
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@18187 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/application_controller.rb | 2 | ||||
-rw-r--r-- | app/controllers/repositories_controller.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 0aaf54b66..66d9b6884 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -20,7 +20,7 @@ require 'uri' require 'cgi' -class Unauthorized < Exception; end +class Unauthorized < StandardError; end class ApplicationController < ActionController::Base include Redmine::I18n diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb index 85b421e77..3aed8c62d 100644 --- a/app/controllers/repositories_controller.rb +++ b/app/controllers/repositories_controller.rb @@ -20,8 +20,8 @@ require 'digest/sha1' require 'redmine/scm/adapters' -class ChangesetNotFound < Exception; end -class InvalidRevisionParam < Exception; end +class ChangesetNotFound < StandardError; end +class InvalidRevisionParam < StandardError; end class RepositoriesController < ApplicationController menu_item :repository |