Skip to content

Commit

Permalink
Improve error reporting in load.process_config
Browse files Browse the repository at this point in the history
  • Loading branch information
tttapa committed Nov 13, 2023
1 parent 7bc803b commit f31a122
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/py_build_cmake/config/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def process_config(
Metadata = pyproject_metadata.StandardMetadata
meta = Metadata.from_pyproject(pyproject, pyproject_path.parent)
except pyproject_metadata.ConfigurationError as e:
raise ConfigError() from e
raise ConfigError(str(e)) from e

# Create our own config data structure
cfg = Config(meta)
Expand Down Expand Up @@ -311,7 +311,7 @@ def process_component_config(pyproject_path: Path, pyproject, config_files):
pyproject, pyproject_path.parent
)
except pyproject_metadata.ConfigurationError as e:
raise ConfigError() from e
raise ConfigError(str(e)) from e

# Create our own config data structure
cfg = ComponentConfig(meta)
Expand Down

0 comments on commit f31a122

Please sign in to comment.