Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve error when package.toml file is not found #177

Open
joprice opened this issue Jan 30, 2022 · 0 comments
Open

improve error when package.toml file is not found #177

joprice opened this issue Jan 30, 2022 · 0 comments

Comments

@joprice
Copy link
Contributor

joprice commented Jan 30, 2022

If a package.toml file does not exist (likely due to a typo), the following error is show:

Error: Missing field 'name' in package.toml

If the file does not exist, I would expect an error saying that it is missing before attempting to parse it. If it is present and missing the name field, it would be helpful to show the full path to the package.toml, to help narrow down which package is causing the problem (In my case, I added several new packages to drom.toml and wasn't sure which was causing the issue).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant