Name the socket once in the unreachable message

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Krzysztof Rudnicki 2026-11-22 22:05:42 +01:00
parent b6f473ceec
commit ff73200ea2

View File

@ -101,7 +101,8 @@ def cmd_add_exception(args: list[str]) -> None:
sys.exit(1)
except DaemonUnreachableError as exc:
_echo(
f"Error: the enforcer daemon did not answer on {SOCKET_PATH} ({exc}).\n"
f"Error: no answer from the enforcer daemon on {SOCKET_PATH} "
f"({exc.__cause__ or exc}).\n"
"Start it, or write the file as root: "
f'sudo ./run.sh add-exception {app_id} --reason "..."'
)