diff --git a/mpcontribs-client/mpcontribs/client/__init__.py b/mpcontribs-client/mpcontribs/client/__init__.py index ef29a07a2..c6708a053 100644 --- a/mpcontribs-client/mpcontribs/client/__init__.py +++ b/mpcontribs-client/mpcontribs/client/__init__.py @@ -455,7 +455,8 @@ def from_textfile(cls, path: Union[Path, str]): try: path = Path(path) except TypeError: - raise MPContribsClientError(f"Failed to coerce {path} into pathlib.Path type.") + typ = type(path) + raise MPContribsClientError(f"use pathlib.Path or str (is: {typ}).") content = path.read_bytes()