Skip to content

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