Skip to content

Commit

Permalink
#527: update an error message
Browse files Browse the repository at this point in the history
  • Loading branch information
tlamonthezie committed Sep 13, 2024
1 parent 57669af commit 1bba56e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lbaf/IO/lbsVTDataWriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def __get_communications(self, phase: Phase, rank: Rank):
comm_dict["from"] = dict(sorted(comm_dict["from"].items()))
else:
missing_ref = comm_dict['from'].get('id', comm_dict['from'].get('seq_id'))
self.__logger.error(f"Communication sender not found ({missing_ref})")
self.__logger.error(f"Invalid object id ({missing_ref}) in communication {json.dumps(comm_dict)}")

receiver_obj: Object = [o for o in phase.get_objects() if
o.get_id() is not None and o.get_id() == comm_dict["to"].get("id") or
Expand All @@ -144,7 +144,7 @@ def __get_communications(self, phase: Phase, rank: Rank):
comm_dict["to"] = dict(sorted(comm_dict["to"].items()))
else:
missing_ref = comm_dict['to'].get('id', comm_dict['to'].get('seq_id'))
self.__logger.error(f"Communication receiver not found ({missing_ref})")
self.__logger.error(f"Invalid object id ({missing_ref}) in communication {json.dumps(comm_dict)}")

if missing_ref is not None:
# keep communication with invalid entity references for the moment.
Expand Down

0 comments on commit 1bba56e

Please sign in to comment.