This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

appview: strings: return 404 page if string wasnt found

Signed-off-by: dusk <y.bera003.06@protonmail.com>

author
dusk
committer
Tangled
date (Aug 10, 2025, 5:09 PM UTC) commit 7dda8376 parent bdf27f0d
+5
+5
appview/strings/strings.go
··· 99 99 w.WriteHeader(http.StatusInternalServerError) 100 100 return 101 101 } 102 + if len(strings) < 1 { 103 + l.Error("string not found") 104 + s.Pages.Error404(w) 105 + return 106 + } 102 107 if len(strings) != 1 { 103 108 l.Error("incorrect number of records returned", "len(strings)", len(strings)) 104 109 w.WriteHeader(http.StatusInternalServerError)