From 3d9aad563d0ab03b260cd384ad78856aeb928bf8 Mon Sep 17 00:00:00 2001 From: Wouter Wijsman Date: Fri, 15 Jan 2016 09:44:39 +0100 Subject: [PATCH] Show process name on ProcessRunningError This allows for easier debugging of which process is blocking Ice from running. SteamOS has some processes which start with steam, but aren't steam. --- ice/environment_checker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ice/environment_checker.py b/ice/environment_checker.py index 1f2ae9e..5e36aea 100644 --- a/ice/environment_checker.py +++ b/ice/environment_checker.py @@ -56,7 +56,7 @@ def require_program_not_running(self, program_name): p = psutil.Process(pid) if p.name().lower().startswith(program_name.lower()): return self.requirement_errors.append( - ProcessRunningError(program_name)) + ProcessRunningError(p.name())) except Exception: continue