show an error to user for honk to nowhere
This commit is contained in:
parent
bff61bd24c
commit
265ca7128a
1
honk.go
1
honk.go
|
@ -956,6 +956,7 @@ func savehonk(w http.ResponseWriter, r *http.Request) {
|
||||||
honk.Audience = oneofakind(honk.Audience)
|
honk.Audience = oneofakind(honk.Audience)
|
||||||
if len(honk.Audience) == 0 {
|
if len(honk.Audience) == 0 {
|
||||||
log.Printf("honk to nowhere")
|
log.Printf("honk to nowhere")
|
||||||
|
http.Error(w, "honk to nowhere...", http.StatusNotFound)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
honk.Public = !keepitquiet(honk.Audience)
|
honk.Public = !keepitquiet(honk.Audience)
|
||||||
|
|
Loading…
Reference in New Issue