panel/web/views/layouts/error.templ
2024-11-03 15:33:08 -05:00

16 lines
No EOL
379 B
Text

package layouts
import "github.com/gofiber/fiber/v2"
import "strconv"
import "time"
templ errorHeading(err fiber.Error) {
<title>Error {err.Message} - OmniBill</title>
}
templ Error(err fiber.Error) {
@Base(errorHeading(err)) {
<h1>{err.Message}</h1>
<h2>Status Code: {strconv.Itoa(err.Code)} | Time: {time.Now().Format("2006-1-2 15:4:5")}</h2>
}
}