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]
このコミットが含まれているのは:
Maisam Arif
2024-06-28 08:58:52 -05:00
コミット 8c87907db9
2個のファイルの変更2行の追加2行の削除
+1 -1
ファイルの表示
@@ -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
+1 -1
ファイルの表示
@@ -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: ")