From 9460a46ac3d8797bc5cc02cf6546377f8a75e5d6 Mon Sep 17 00:00:00 2001 From: Akhil Narang Date: Mon, 15 Jan 2024 13:34:58 +0530 Subject: [PATCH] chore: simplify output of `bench setup supervisor` when supervisor isn't installed Seeing the whole stacktrace isn't too useful here Signed-off-by: Akhil Narang --- bench/commands/setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bench/commands/setup.py b/bench/commands/setup.py index 9b13c269..e291f86a 100755 --- a/bench/commands/setup.py +++ b/bench/commands/setup.py @@ -73,7 +73,9 @@ def setup_supervisor(user=None, yes=False, skip_redis=False, skip_supervisord=Fa generate_supervisor_config, ) - which("supervisorctl", raise_err=True) + if which("supervisorctl") is None: + click.secho("Please install `supervisor` to proceed", fg="red") + sys.exit(1) if not skip_supervisord and "Permission denied" in get_cmd_output( "supervisorctl status"