kopia lustrzana https://github.com/iv-org/invidious
Fix empty error page on BrokenTubeException
rodzic
492d1144e0
commit
ec55b905cb
|
@ -1,8 +1,12 @@
|
||||||
# Exception used to hold the name of the missing item
|
# Exception used to hold the name of the missing item
|
||||||
# Should be used in all parsing functions
|
# Should be used in all parsing functions
|
||||||
class BrokenTubeException < InfoException
|
class BrokenTubeException < Exception
|
||||||
getter element : String
|
getter element : String
|
||||||
|
|
||||||
def initialize(@element)
|
def initialize(@element)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def message
|
||||||
|
return "Missing JSON element \"#{@element}\""
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Ładowanie…
Reference in New Issue