mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Rename default error template to error.html, refs #965
This commit is contained in:
parent
699be7dea9
commit
3817152e31
3 changed files with 19 additions and 21 deletions
|
|
@ -1124,9 +1124,7 @@ class DatasetteRouter:
|
||||||
info = {}
|
info = {}
|
||||||
message = str(exception)
|
message = str(exception)
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
templates = ["500.html"]
|
templates = ["{}.html".format(status), "error.html"]
|
||||||
if status != 500:
|
|
||||||
templates = ["{}.html".format(status)] + templates
|
|
||||||
info.update(
|
info.update(
|
||||||
{
|
{
|
||||||
"ok": False,
|
"ok": False,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue