16 lines
379 B
Text
16 lines
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>
|
||
|
}
|
||
|
}
|