Merge pull request #6161 from ynput/chore/better_validation_message

Maya: Extended error message
This commit is contained in:
Jakub Trllo 2024-01-25 13:47:21 +01:00 committed by GitHub
commit 6c87f3fb54
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -44,4 +44,8 @@ class ValidateSceneSetWorkspace(pyblish.api.ContextPlugin):
if not is_subdir(scene_name, root_dir):
raise PublishValidationError(
"Maya workspace is not set correctly.")
"Maya workspace is not set correctly.\n\n"
f"Current workfile `{scene_name}` is not inside the "
"current Maya project root directory `{root_dir}`.\n\n"
"Please use Workfile app to re-save."
)