fix: Update error message on website load fail
All checks were successful
Build Docker / Build Main Image (push) Successful in 19s
Build Docker / Build SLDs Image (push) Successful in 18s

This commit is contained in:
Nathan Woodburn 2023-11-15 21:32:10 +11:00
parent a501142f12
commit f246b9d033
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -45,7 +45,7 @@ def render(data,db_object):
hns_icon = "assets/img/HNS.png"
except Exception as e:
return "<h1>Invalid data</h1><br><h2>Please contact support</h2><br>" + str(e)
return "<h1>Invalid data</h1><br><h2>Please contact support</h2><br><p>This can often be fixed by saving your site again in the editor</p><br>" + "<script>console.log('" + str(e) + "');</script>"
return render_template('city.html',html=html,bg_colour=bg_colour,text_colour=text_colour,