Skip to content

Commit 81a652e

Browse files
committed
cleaned up error message
1 parent a9a3715 commit 81a652e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fileformats/generic/fsobject.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ class FsObject(FileSet, os.PathLike): # type: ignore
1414
@property
1515
def fspath(self) -> Path:
1616
if len(self.fspaths) > 1:
17+
fspaths = [str(f) for f in self.fspaths]
1718
raise FormatMismatchError(
18-
f"More than one fspath ({self.fspaths}) provided to FsObject, "
19+
f"More than one fspath ({fspaths}) provided to FsObject, "
1920
f"primary path is ambiguous"
2021
)
2122
return next(iter(self.fspaths))

0 commit comments

Comments
 (0)