Better diagnostics from bad slug error

This commit is contained in:
2023-02-02 11:19:46 +00:00
parent 3b9695b4f3
commit 578f02db2d
2 changed files with 6 additions and 6 deletions

View File

@@ -217,7 +217,7 @@ def cavewallets(request, caveid):
if caveid in Gcavelookup:
cave = Gcavelookup[caveid]
else:
return render(request, "errors/badslug.html", {"badslug": caveid})
return render(request, "errors/badslug.html", {"badslug": f"{caveid} - from cavewallets()"})
# remove duplication. Sorting is done in the template
# But this only gets wallets which have survex files attached..