diff --git a/appview/strings/strings.go b/appview/strings/strings.go index 130329fd..8855a043 100644 --- a/appview/strings/strings.go +++ b/appview/strings/strings.go @@ -99,6 +99,11 @@ func (s *Strings) contents(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusInternalServerError) return } + if len(strings) < 1 { + l.Error("string not found") + s.Pages.Error404(w) + return + } if len(strings) != 1 { l.Error("incorrect number of records returned", "len(strings)", len(strings)) w.WriteHeader(http.StatusInternalServerError)