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 Can't separate key from value error message #144

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

peeley
Copy link

@peeley peeley commented Jun 12, 2021

Kind of insignificant, but could save some future headaches.

An example: I have a docker-compose.yml file with about half a dozen services, each of which has an env_file. Docker uses godotenv as a dependency to parse these .env files, so when there's an error in any one of these files all I see upon starting the containers is Can't separate key from value.

To debug this, I basically have to disable and re-enable the .env files one by one until I've isolated the offending file, and then comb through the file for the offending line.

This MR will reduce some of that effort (and similar efforts) by printing out the line causing parse errors, which can then be used in addition to tools like grep for quicker debugging.

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

Successfully merging this pull request may close these issues.

1 participant