mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Revert "Allow NotFound
to specify an optional Location
for the resource"
This reverts commit 4ae66c9e01
.
This commit is contained in:
parent
e687a1e8e3
commit
460ed3c8cf
2 changed files with 3 additions and 25 deletions
|
@ -74,13 +74,7 @@ module Discourse
|
|||
end
|
||||
|
||||
# When something they want is not found
|
||||
class NotFound < StandardError
|
||||
attr_reader :location
|
||||
def initialize(opts = nil)
|
||||
opts ||= {}
|
||||
@location = opts[:location]
|
||||
end
|
||||
end
|
||||
class NotFound < StandardError; end
|
||||
|
||||
# When a setting is missing
|
||||
class SiteSettingMissing < StandardError; end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue