web: add basic error handling.

Handle unexpected errors in the web service, for example if given an
invalid or corrupt image file.
This commit is contained in:
evazion
2022-06-29 18:17:59 -05:00
parent b2160576fc
commit 069af1c0c4
2 changed files with 32 additions and 5 deletions
+10
View File
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<title>{{ error }}</title>
</head>
<body>
<h1>{{ error }}</h1>
<p>{{ message }}</p>
</body>
</html>