Skip to content

Commit

Permalink
Better error message
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Pope <[email protected]>
  • Loading branch information
amyreese and lordmauve authored Feb 7, 2025
1 parent 017efa1 commit 2da14a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thx/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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", {}))
Expand Down

0 comments on commit 2da14a3

Please sign in to comment.