Skip to content

Commit 245b52d

Browse files
authored
Merge pull request #181 from DMTF/Error-Message-Cleanup
Fixed formatting of error message string construction
2 parents 202db13 + ba491c5 commit 245b52d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/redfish/messages/messages.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ def get_error_messages( response ):
136136
if "@Message.ExtendedInfo" in messages_detail:
137137
for message in messages_detail["@Message.ExtendedInfo"]:
138138
if "Message" in message:
139-
out_string = out_string + "\n" + message["Message"]
140-
else:
139+
out_string = out_string + "\n" + message["MessageId"] + ": " + message["Message"]
140+
else:
141141
out_string = out_string + "\n" + message["MessageId"]
142142
out_string = out_string + "\n"
143143
except:

0 commit comments

Comments
 (0)