diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-02-04 19:42:42 -0600 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-02-04 19:42:42 -0600 |
| commit | a9ef931856e5e901eaacd7188206dba2db6f2929 (patch) | |
| tree | 718000bd7a8bc633f411561f552f0b1d7aec4f45 /src | |
| parent | d79c1ff3e9015bc093200aa1d48c265dfc9c6f42 (diff) | |
| download | invidious-a9ef931856e5e901eaacd7188206dba2db6f2929.tar.gz invidious-a9ef931856e5e901eaacd7188206dba2db6f2929.tar.bz2 invidious-a9ef931856e5e901eaacd7188206dba2db6f2929.zip | |
Fix error handling
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious.cr | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/invidious.cr b/src/invidious.cr index e103903c..b23dfe5b 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -242,12 +242,12 @@ get "/search" do |env| templated "search" end -error 404 do |env| - templated "index" +get "/:path" do |env| + env.redirect "/" end error 500 do |env| - templated "index" + "Error 500" end public_folder "assets" |
