mirror of
				https://github.com/iv-org/invidious.git
				synced 2025-11-04 06:31:57 +00:00 
			
		
		
		
	Fix empty error page on BrokenTubeException
This commit is contained in:
		@@ -1,8 +1,12 @@
 | 
			
		||||
# Exception used to hold the name of the missing item
 | 
			
		||||
# Should be used in all parsing functions
 | 
			
		||||
class BrokenTubeException < InfoException
 | 
			
		||||
class BrokenTubeException < Exception
 | 
			
		||||
  getter element : String
 | 
			
		||||
 | 
			
		||||
  def initialize(@element)
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def message
 | 
			
		||||
    return "Missing JSON element \"#{@element}\""
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user