Skip to content

Commit

Permalink
Update join warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
saulpw authored Nov 27, 2023
1 parent 01a121a commit 6c26f34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion visidata/features/join.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ def calcValue(self, row):
if row[c.sheet] is not None:
vals.add(c.getTypedValue(row[c.sheet]))
if len(vals) != 1:
vd.warning(f"The source key columns of {', '.join([col.sheet.name + ':' + col.name for col in self.keycols])}, have different types. Type the source columns before joining.")
keycolnames = ', '.join([f'{col.sheet.name}:{col.name}' for col in self.keycols])
vd.warning(f"The source key columns ({keycolnames}) have different types. Type the source columns before joining.")
return vals.pop()

def putValue(self, row, value):
Expand Down

0 comments on commit 6c26f34

Please # to comment.