aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--resources/libraries/python/PapiExecutor.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/resources/libraries/python/PapiExecutor.py b/resources/libraries/python/PapiExecutor.py
index 7bfc8614a5..ecee70c9c5 100644
--- a/resources/libraries/python/PapiExecutor.py
+++ b/resources/libraries/python/PapiExecutor.py
@@ -794,16 +794,17 @@ class PapiSocketExecutor:
if not isinstance(reply, list):
reply = [reply]
for item in reply:
- self.crc_checker.check_api_name(item.__class__.__name__)
+ message_name = item.__class__.__name__
+ self.crc_checker.check_api_name(message_name)
dict_item = dictize(item)
if u"retval" in dict_item.keys():
# *_details messages do not contain retval.
retval = dict_item[u"retval"]
if retval != exp_rv:
- # TODO: What exactly to log and raise here?
raise AssertionError(
f"Retval {retval!r} does not match expected "
- f"retval {exp_rv!r}"
+ f"retval {exp_rv!r} in message {message_name} "
+ f"for command {command}."
)
replies.append(dict_item)
return replies