From 71cc8d6c14751fbade4b74513299b783fe3fb13c Mon Sep 17 00:00:00 2001 From: Patrick Huck Date: Thu, 22 Jun 2023 17:13:07 -0700 Subject: [PATCH] minor err message change --- mpcontribs-client/mpcontribs/client/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()