astral-sh / rye

a Hassle-Free Python Experience
https://rye.astral.sh
MIT License
13.6k stars 466 forks source link

improve config.toml error msg #1155

Closed zys864 closed 3 months ago

zys864 commented 3 months ago

improve config.toml error msg

when I write a unvalid config.toml

[[sources]]
# name = "company-internal"
url = "https://company.internal/simple/"

the before msg is very strange: error: expected name after: error: bad config.toml syntax,expected source.name