From 752018a699f06357228966b4101f6b9d4ac222ce Mon Sep 17 00:00:00 2001 From: Jeff Lane Date: Fri, 17 Jul 2015 11:25:34 -0400 Subject: refinement to error output for sysfs_cpu() --- bin/cpu_topology | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/cpu_topology b/bin/cpu_topology index 4cb2249..ba27b6a 100755 --- a/bin/cpu_topology +++ b/bin/cpu_topology @@ -47,7 +47,8 @@ class sysfs_cpu(): try: syscpu_fh = open(os.path.join(self.path, i), 'r') except FileNotFoundError: - print("/sys/devices seems to be missing, unable to continue") + print("ERROR: %s seems to be missing, unable to continue" % + self.path) sys.exit(1) else: self.syscpu[i] = syscpu_fh.readline().strip() -- cgit v1.2.3