From 578f02db2def16e18967af1ff947657a1a5efe11 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Thu, 2 Feb 2023 11:19:46 +0000 Subject: Better diagnostics from bad slug error --- core/views/scans.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/views/scans.py') diff --git a/core/views/scans.py b/core/views/scans.py index aed38ee..9555b3f 100644 --- a/core/views/scans.py +++ b/core/views/scans.py @@ -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.. -- cgit v1.2.3