From 2da14a33566cbef3bac5a087d7468f845bd024f7 Mon Sep 17 00:00:00 2001 From: Amethyst Reese Date: Fri, 7 Feb 2025 13:56:57 -0800 Subject: [PATCH] Better error message Co-authored-by: Daniel Pope --- thx/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thx/config.py b/thx/config.py index 13e328b..31e8ecf 100644 --- a/thx/config.py +++ b/thx/config.py @@ -135,7 +135,7 @@ def load_config(path: Optional[Path] = None) -> Config: try: data = tomli.loads(content).get("tool", {}).get("thx", {}) except tomli.TOMLDecodeError as error: - raise ConfigError(f"failure parsing pyproject.toml: {str(error)}") from error + raise ConfigError(f"failure parsing {pyproject}: {error}") from error default: List[str] = ensure_listish(data.pop("default", None), "tool.thx.default") jobs: List[Job] = parse_jobs(data.pop("jobs", {}))