From d61efb0b204c03017154d89127d88b014af26428 Mon Sep 17 00:00:00 2001 From: Tom Close Date: Thu, 15 Aug 2024 12:22:25 +1000 Subject: [PATCH] cleaned up error message --- fileformats/generic/fsobject.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fileformats/generic/fsobject.py b/fileformats/generic/fsobject.py index 226ca8d..4006eec 100644 --- a/fileformats/generic/fsobject.py +++ b/fileformats/generic/fsobject.py @@ -16,8 +16,9 @@ class FsObject(FileSet, os.PathLike): @property def fspath(self): if len(self.fspaths) > 1: + fspaths = [str(f) for f in self.fspaths] raise FormatMismatchError( - f"More than one fspath ({self.fspaths}) provided to FsObject, " + f"More than one fspath ({fspaths}) provided to FsObject, " f"primary path is ambiguous" ) return next(iter(self.fspaths))