Skip to content

Commit

Permalink
fix: Show better user messages when failed to update supervisord
Browse files Browse the repository at this point in the history
  • Loading branch information
gavindsouza committed Mar 17, 2022
1 parent e57b37f commit d89f19e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bench/config/supervisor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d89f19e

Please sign in to comment.