From 376b99d364a1b0d7b064645cf3325c90a4ef8933 Mon Sep 17 00:00:00 2001 From: kcornw <141114704+kcornw@users.noreply.github.com> Date: Mon, 23 Dec 2024 14:51:45 +0800 Subject: [PATCH] Improve dmypy status message to clarify state Update the status message to clarify that the daemon may be busy and not necessarily stuck. The new message provides better guidance to users without prematurely suggesting killing the daemon. Fixes #18008 --- mypy/dmypy/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mypy/dmypy/client.py b/mypy/dmypy/client.py index 9f0751e93609..a534a78542da 100644 --- a/mypy/dmypy/client.py +++ b/mypy/dmypy/client.py @@ -436,7 +436,7 @@ def do_status(args: argparse.Namespace) -> None: if args.verbose or "error" in response: show_stats(response) if "error" in response: - fail(f"Daemon is stuck; consider {sys.argv[0]} kill") + fail(f"Daemon may be busy processing; if this persists, consider {sys.argv[0]} kill") print("Daemon is up and running") @@ -447,7 +447,7 @@ def do_stop(args: argparse.Namespace) -> None: response = request(args.status_file, "stop", timeout=5) if "error" in response: show_stats(response) - fail(f"Daemon is stuck; consider {sys.argv[0]} kill") + fail(f"Daemon may be busy processing; if this persists, consider {sys.argv[0]} kill") else: print("Daemon stopped")