Changed error message for not finding any collection

This commit is contained in:
Simone Barbieri 2023-10-11 10:20:43 +01:00
parent d27d3435d9
commit ca07d56255

View file

@ -46,8 +46,10 @@ class ValidateSequenceFrames(pyblish.api.InstancePlugin):
f"Invalid files: {remainder}")
if not collections:
raise PublishValidationError(
"No collections found. There should be a single "
"collection per representation.")
"We have been unable to find a sequence in the "
"files. Please ensure the files are named "
"appropriately. "
f"Files: {repr_files}")
if len(collections) > 1:
raise PublishValidationError(
"Multiple collections detected. There should be a single "