Skip to content

Conversation

@philippedev101
Copy link

When using Bash-style variable substitution with error enforcement (e.g., ${MY_VAR?Variable not set}), podman-compose raises a RuntimeError if the variable is missing.

Currently, this error only contains the custom error text provided in the string (e.g., "Variable not set"). It does not indicate which variable triggered the error. In large docker-compose.yml files with many required variables, this makes debugging impossible without modifying the source code.

This PR updates the RuntimeError to prepend the variable name to the error message.

  • Before: RuntimeError: Variable not set
  • After: RuntimeError: Variable 'OPENSEARCH_ADMIN_PASSWORD': Variable not set

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