updated hws: expanded error page functionality

This commit is contained in:
2026-01-23 12:33:13 +11:00
parent e9b96fedb1
commit 378bd8006d
3 changed files with 11 additions and 9 deletions

View File

@@ -17,13 +17,13 @@ import (
type goodPage struct{}
type badPage struct{}
func goodRender(code int) (hws.ErrorPage, error) {
func goodRender(error hws.HWSError) (hws.ErrorPage, error) {
return goodPage{}, nil
}
func badRender1(code int) (hws.ErrorPage, error) {
func badRender1(error hws.HWSError) (hws.ErrorPage, error) {
return badPage{}, nil
}
func badRender2(code int) (hws.ErrorPage, error) {
func badRender2(error hws.HWSError) (hws.ErrorPage, error) {
return nil, errors.New("I'm an error")
}