From 24060da1ddf64b9937f74b83a00f5fbd1b4325cb Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Mon, 28 Jul 2025 09:35:22 -0300 Subject: [PATCH] khatru: better error on nip86 "u" tag mismatch. --- khatru/nip86.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/khatru/nip86.go b/khatru/nip86.go index 7951f38..2128846 100644 --- a/khatru/nip86.go +++ b/khatru/nip86.go @@ -87,7 +87,7 @@ func (rl *Relay) HandleNIP86(w http.ResponseWriter, r *http.Request) { } if uTag := evt.Tags.Find("u"); uTag == nil || rl.getBaseURL(r) != uTag[1] { - resp.Error = "invalid 'u' tag" + resp.Error = fmt.Sprintf("invalid 'u' tag, expected '%s', got '%s'", rl.getBaseURL(r), uTag[1]) goto respond } else if pht := evt.Tags.FindWithValue("payload", hex.EncodeToString(payloadHash[:])); pht == nil { resp.Error = "invalid auth event payload hash"