Skip to content

Commit 8b2219f

Browse files
committed
better error message
1 parent 08f6bac commit 8b2219f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pipeline/src/collection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def save(self, path, individual_files=False, include_empty_properties=False):
112112
if not os.path.exists(path):
113113
os.makedirs(path, exist_ok=True)
114114
if not os.path.isdir(path):
115-
raise OSError("if saving to multiple files, `path` must be a directory")
115+
raise OSError(f"If saving to multiple files, `path` must be a directory. path={path}, pwd={os.getcwd()}")
116116
output_paths = []
117117
for node in self:
118118
if node.id.startswith("http"):

0 commit comments

Comments
 (0)