all repos — homestead @ 086f378195ddc1e3bce087196fcbda4e6d3ae6fd

Code for my website

simplify error template

Alan Pearce
commit

086f378195ddc1e3bce087196fcbda4e6d3ae6fd

parent

83369daabc06fafd62316d611baed63fb2900d95

1 file changed, 1 insertion(+), 3 deletions(-)

changed files
M domain/web/templates/error.godomain/web/templates/error.go
@@ -1,8 +1,6 @@
package templates import ( - "strconv" - g "alin.ovh/gomponents" . "alin.ovh/gomponents/html" "alin.ovh/homestead/shared/http"
@@ -12,7 +10,7 @@ func Error(site SiteSettings, err http.Error) g.Node {
return Layout(site, PageSettings{ Title: "Error", }, Div( - H1(g.Text(strconv.Itoa(err.StatusCode())+" "+err.Message())), + H1(g.Text(err.Error())), H2(g.Text("ʕノ•ᴥ•ʔノ ︵ ┻━┻")), )) }