diff options
| author | Samantaz Fox <coding@samantaz.fr> | 2022-02-09 01:36:17 +0100 |
|---|---|---|
| committer | Samantaz Fox <coding@samantaz.fr> | 2022-02-09 01:36:17 +0100 |
| commit | ec55b905cb8b0b65deeb21a89751b17160676159 (patch) | |
| tree | a4c492285c93809c5a3bce0b2052c27b8a98aaa3 | |
| parent | 492d1144e0dff85bc58071037ef0980c4027cc69 (diff) | |
| download | invidious-ec55b905cb8b0b65deeb21a89751b17160676159.tar.gz invidious-ec55b905cb8b0b65deeb21a89751b17160676159.tar.bz2 invidious-ec55b905cb8b0b65deeb21a89751b17160676159.zip | |
Fix empty error page on BrokenTubeException
| -rw-r--r-- | src/invidious/exceptions.cr | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/invidious/exceptions.cr b/src/invidious/exceptions.cr index 391a574d..490d98cd 100644 --- a/src/invidious/exceptions.cr +++ b/src/invidious/exceptions.cr @@ -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 |
