Skip to content

Commit ec55b90

Browse files
committed
Fix empty error page on BrokenTubeException
1 parent 492d114 commit ec55b90

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/invidious/exceptions.cr

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
# Exception used to hold the name of the missing item
22
# Should be used in all parsing functions
3-
class BrokenTubeException < InfoException
3+
class BrokenTubeException < Exception
44
getter element : String
55

66
def initialize(@element)
77
end
8+
9+
def message
10+
return "Missing JSON element \"#{@element}\""
11+
end
812
end

0 commit comments

Comments
 (0)