diff options
author | rubenwardy <rw@rubenwardy.com> | 2020-08-18 13:34:04 +0100 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2020-08-18 13:34:04 +0100 |
commit | 0c81d0ae2bbabc3ec50febaabdbbb40b71d47c63 (patch) | |
tree | 0ba65f3d5c45b2af179d715e47827498156c42b3 /app/tasks/minetestcheck/__init__.py | |
parent | 6167bdc7f05c1dfdc56a079b47fc559670192035 (diff) | |
download | cheatdb-0c81d0ae2bbabc3ec50febaabdbbb40b71d47c63.tar.xz |
Improve MinetestCheck name validation
Diffstat (limited to 'app/tasks/minetestcheck/__init__.py')
-rw-r--r-- | app/tasks/minetestcheck/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/tasks/minetestcheck/__init__.py b/app/tasks/minetestcheck/__init__.py index dbc57ad..deec46e 100644 --- a/app/tasks/minetestcheck/__init__.py +++ b/app/tasks/minetestcheck/__init__.py @@ -24,14 +24,14 @@ class ContentType(Enum): if self == ContentType.MOD: if not other.isModLike(): - raise MinetestCheckError("expected a mod or modpack, found " + other.value) + raise MinetestCheckError("Expected a mod or modpack, found " + other.value) elif self == ContentType.TXP: if other != ContentType.UNKNOWN and other != ContentType.TXP: raise MinetestCheckError("expected a " + self.value + ", found a " + other.value) elif other != self: - raise MinetestCheckError("expected a " + self.value + ", found a " + other.value) + raise MinetestCheckError("Expected a " + self.value + ", found a " + other.value) from .tree import PackageTreeNode, get_base_dir |