mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Refactor flash function call to flask_flash for better error handling when the database has fallen back
This commit is contained in:
parent
174e437046
commit
773d50738f
1 changed files with 1 additions and 1 deletions
|
|
@ -153,7 +153,7 @@ def inject_variables():
|
|||
|
||||
if not request.path.startswith("/loading"):
|
||||
if not changes_ongoing and metadata["failover"]:
|
||||
flash(
|
||||
flask_flash(
|
||||
"The last changes could not be applied because it creates a configuration error on NGINX, please check the logs for more information. The configured fell back to the last working one.",
|
||||
"error",
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue