Skip to content

Commit

Permalink
add path to replicated error message (#174)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #174

To make it easier to debug replicated issues

Reviewed By: JKSenthil

Differential Revision: D56174603

fbshipit-source-id: d1183743ff0e770677aed61b26f55a83c8a9e821
  • Loading branch information
galrotem authored and facebook-github-bot committed Apr 16, 2024
1 parent 706ee13 commit 7c14dd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchsnapshot/partitioner.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def consolidate_replicated_entries(
if logical_path in replicated_entries:
if replicated_entries[logical_path] != entry:
raise ValueError(
f"Paths for replicated entry do not match: replicated entries={replicated_entries[logical_path]} vs. entry={entry}"
f"Paths for replicated entry for {logical_path} do not match: replicated entries={replicated_entries[logical_path]} vs. entry={entry}"
)
else:
replicated_entries[logical_path] = entry
Expand Down

0 comments on commit 7c14dd4

Please sign in to comment.