From 265ca7128ae23753b0205b23467c318325f4c003 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Tue, 25 Jun 2019 19:17:39 -0400 Subject: [PATCH] show an error to user for honk to nowhere --- honk.go | 1 + 1 file changed, 1 insertion(+) diff --git a/honk.go b/honk.go index debc757..b14a36e 100644 --- a/honk.go +++ b/honk.go @@ -956,6 +956,7 @@ func savehonk(w http.ResponseWriter, r *http.Request) { honk.Audience = oneofakind(honk.Audience) if len(honk.Audience) == 0 { log.Printf("honk to nowhere") + http.Error(w, "honk to nowhere...", http.StatusNotFound) return } honk.Public = !keepitquiet(honk.Audience)