Log the filepath it invalidated for clearer log

This commit is contained in:
Roy Nieterau 2024-09-20 12:28:34 +02:00
parent d00fa72892
commit 9ea9e344a2

View file

@ -509,8 +509,11 @@ class IntegrateAsset(pyblish.api.InstancePlugin):
if not is_sequence_representation:
files = [files]
if any(os.path.isabs(fname) for fname in files):
raise KnownPublishError("Given file names contain full paths")
for fname in files:
if os.path.isabs(fname):
raise KnownPublishError(
f"Representation file names contains full paths: {fname}"
)
if not is_sequence_representation:
return