From 55eee7d22dacd863c8dd4c0cafcb8b2e87b10e97 Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Wed, 2 Feb 2022 15:18:12 -0800 Subject: [PATCH] mkksiso: Improve debug message about unsupported arch --- src/sbin/mkksiso | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/sbin/mkksiso b/src/sbin/mkksiso index 4374f0e6..787d4c20 100755 --- a/src/sbin/mkksiso +++ b/src/sbin/mkksiso @@ -44,8 +44,9 @@ class Tool(): def __init__(self): # If there are arches listed it must be running on one of them if self.arches and os.uname().machine not in self.arches: - log.debug("%s is not supported by this tool", os.uname().machine) - raise RuntimeError("%s not supported" % os.uname().machine) + msg = "%s class does not support %s arch" % (self.__class__.__name__, os.uname().machine) + log.debug(msg) + raise RuntimeError(msg) # Check the system to see if the tools are available and record their paths for e in self.tools: