Updated error code naming to be inline with Host

Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
Change-Id: I6c66640742a25361ad6399763ee442598ffb0ac6


[ROCm/amdsmi commit: 27cd092c6d]
Šī revīzija ir iekļauta:
Maisam Arif
2024-06-28 08:58:52 -05:00
vecāks a29f44019d
revīzija 8c87907db9
2 mainīti faili ar 2 papildinājumiem un 2 dzēšanām
@@ -182,7 +182,7 @@ class AmdSmiMissingParameterValueException(AmdSmiException):
self.stdout_message = f"{common_message} Error code: {self.value}"
class AmdSmiNotSupportedCommandException(AmdSmiException):
class AmdSmiCommandNotSupportedException(AmdSmiException):
def __init__(self, command, outputformat: str):
super().__init__()
self.value = -7
@@ -1243,7 +1243,7 @@ class AMDSMIParser(argparse.ArgumentParser):
message = message.split("'")[0]
# Check if the command is possible in other system configurations and error accordingly
if message in self.possible_commands:
raise amdsmi_cli_exceptions.AmdSmiNotSupportedCommandException(message, outputformat)
raise amdsmi_cli_exceptions.AmdSmiCommandNotSupportedException(message, outputformat)
raise amdsmi_cli_exceptions.AmdSmiInvalidCommandException(message, outputformat)
elif "unrecognized arguments: " in message:
l = len("unrecognized arguments: ")