Use error page template for errors
This commit is contained in:
parent
a2cd38617a
commit
0376cecb82
|
|
@ -15,6 +15,7 @@ func Error(status int, format string, a ...any) rsvp.Response {
|
|||
return rsvp.Response{
|
||||
Body: fmt.Sprintf(format, a...),
|
||||
Status: status,
|
||||
TemplateName: "error_page.gotmpl",
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
</div>
|
||||
<div class="container d-flex flex-grow-1 justify-content-center align-items-center flex-column">
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<p class="mb-0">{{.Message}}</p>
|
||||
<p class="mb-0">{{.}}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue