Materials-Data-Science-and-Informatics / somesy

A CLI tool for synchronizing software project metadata
https://materials-data-science-and-informatics.github.io/somesy/main/
MIT License
9 stars 1 forks source link

error message not printed correctly #83

Closed stexandev closed 3 months ago

stexandev commented 4 months ago

https://github.com/Materials-Data-Science-and-Informatics/somesy/blob/77c93457ebf551fa3d77b67c2920702ae4361a9c/src/somesy/pyproject/writer.py#L193

The error message is not printed correctly:

"The pyproject.toml file is ambiguous, either add a or section"

I expected it to be :

"The pyproject.toml file is ambiguous, either add a [project] or [tool.poetry] section"

mustafasoylu commented 3 months ago

Thank you for the feedback @stexandev . I realized this problem occurs because we are using rich library pretty print the errors. Therefore, both traceback and error messages are checked for rich commands in this error wrapper. I will fix it and make release immediately.