Catch errors from external service and display in alert box

Closes: #129
This commit is contained in:
Edward Betts 2024-02-18 22:36:15 +00:00
parent f19e4e4dd4
commit 7a9fbcec7b
2 changed files with 21 additions and 5 deletions

View file

@ -127,6 +127,14 @@
Sunset: {{ sunset.strftime("%H:%M:%S") }}</li>
</ul>
{% if errors %}
{% for error in errors %}
<div class="alert alert-danger" role="alert">
Error: {{ error }}
</div>
{% endfor %}
{% endif %}
<h3>Stock markets</h3>
{% for market in stock_markets %}
<p>{{ market }}</p>