Catch database connection error and show error page

Closes: #5
This commit is contained in:
Edward Betts 2023-11-17 12:21:07 -03:00
parent 3b81bc0d96
commit d425133423
2 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,17 @@
{% extends "base.html" %}
{% block title %}Geocode to Commons: database error{% endblock %}
{% block content %}
<div class="m-3">
<h1>Geocode coordinates to Commons Category</h1>
<div class="alert alert-danger" role="alert">
Error: database connection not available.
</div>
</div>
{% endblock %}