mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Improve documentation for validate version.
This commit is contained in:
parent
db3f708b19
commit
23f70bac3c
1 changed files with 5 additions and 5 deletions
|
|
@ -17,9 +17,9 @@ class ValidateVersion(pyblish.api.InstancePlugin):
|
|||
latest_version = instance.data.get("latestVersion")
|
||||
|
||||
if latest_version is not None:
|
||||
msg = ("Version `{0}` that you are"
|
||||
" trying to publish, already"
|
||||
" exists in the"
|
||||
" database.").format(
|
||||
version, latest_version)
|
||||
msg = (
|
||||
"Version `{0}` that you are trying to publish, already exists"
|
||||
" in the database. Version in databse: `{1}`. Please version "
|
||||
"up your workfile to a higher version number than: `{1}`."
|
||||
).format(version, latest_version)
|
||||
assert (int(version) > int(latest_version)), msg
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue