Improve documentation for validate version.

This commit is contained in:
Toke Stuart Jepsen 2020-06-01 12:21:37 +01:00
parent db3f708b19
commit 23f70bac3c

View file

@ -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