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 = {}
|
||||
message = str(exception)
|
||||
traceback.print_exc()
|
||||
templates = ["500.html"]
|
||||
if status != 500:
|
||||
templates = ["{}.html".format(status)] + templates
|
||||
templates = ["{}.html".format(status), "error.html"]
|
||||
info.update(
|
||||
{
|
||||
"ok": False,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue