feat: add custom error page and log silent errors to stdout

This commit is contained in:
rramiachraf
2023-01-22 16:19:35 +01:00
parent c64bbdf591
commit 3df6bdbf22
5 changed files with 90 additions and 16 deletions

19
views/error.tmpl Normal file
View File

@ -0,0 +1,19 @@
<!DOCTYPE html>
<html>
<head>
<title>dumb</title>
<meta charset="utf-8" />
<link rel="stylesheet" type="text/css" href="/static/style.css" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body>
<main id="app">
{{template "navbar"}}
<div id="error">
<h1>{{.Status}}</h1>
<p>{{.Error}}</p>
</div>
{{template "footer"}}
</div>
</body>
</html>