Skip to content
This repository has been archived by the owner on Jan 14, 2024. It is now read-only.

Commit

Permalink
#56: Added env variable name to the message, so it will be easier to …
Browse files Browse the repository at this point in the history
…understand
  • Loading branch information
blackandred committed Nov 10, 2020
1 parent 47058d7 commit 3e6afa2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/rkd/api/contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,8 +366,11 @@ def internal_getenv(self, env_name: str, envs: Dict[str, str], switch: str = '',

if env_name not in declared_envs:
raise UndefinedEnvironmentVariableUsageError(
'Attempt to use not declared environment variable. ' +
'Please report the problem to the maintainers of this task, not to RKD (unless it is a core task)'
(
'Attempt to use not declared environment variable "%s". ' +
'Please report the problem to the maintainers of this task, not to RKD (unless it is a core task)'
)
% env_name
)

# return default value
Expand Down

0 comments on commit 3e6afa2

Please sign in to comment.