diff options
Diffstat (limited to 'pkg/tpl/error.templ')
-rw-r--r-- | pkg/tpl/error.templ | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pkg/tpl/error.templ b/pkg/tpl/error.templ index 8045c1a..a2e9438 100644 --- a/pkg/tpl/error.templ +++ b/pkg/tpl/error.templ @@ -1,8 +1,10 @@ package tpl -templ ErrorPage(err string) { +import "strconv" + +templ ErrorPage(code int, message string) { @Layout(HeaderParams{}) { - <h1>Ошибка!</h1> - <p>{ err }</p> + <h1>Ошибка { strconv.Itoa(code) }!</h1> + <p>{ message }</p> } } |