From 4634d1611742dce72f35979ea566afb1b7247fff 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 Related: rhbz#2049192 --- src/sbin/mkksiso | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/sbin/mkksiso b/src/sbin/mkksiso index 42acbe7e..a5557de3 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: