2
0
mirror of https://github.com/frappe/bench.git synced 2024-06-27 11:43:29 +00:00

fix: Show better user messages when failed to update supervisord

This commit is contained in:
Gavin D'souza 2022-03-17 12:58:05 +05:30
parent e57b37f52b
commit d89f19e02e

View File

@ -109,7 +109,9 @@ def update_supervisord_config(user=None, yes=False):
supervisord_conf_changes += '\n' + action
if not supervisord_conf_changes:
logger.log("supervisord.conf not updated")
logger.error("supervisord.conf not updated")
contents = "\n".join(f"{x}={y}" for x, y in updated_values.items())
print(f"Update your {supervisord_conf} with the following values:\n[{section}]\n{contents}")
return
if not yes: