Skip to content

Commit

Permalink
Added name to error message. Fixes #55
Browse files Browse the repository at this point in the history
  • Loading branch information
loganasherjones committed May 22, 2018
1 parent 4b46325 commit 220d961
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yapconf/items.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,9 +331,9 @@ def get_config_value(self, overrides):

def _validate_value(self, value):
if self.choices and value not in self.choices:
raise YapconfValueError("Invalid value provided (%s)."
raise YapconfValueError("Invalid value provided (%s) for %s."
"Valid values are %s" %
(value, self.choices))
(value, self.fq_name, self.choices))

def convert_config_value(self, value, label):
try:
Expand Down

0 comments on commit 220d961

Please sign in to comment.