mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-09 18:51:29 -07:00
Merge pull request #14847 from bob-smith/errormsg
Make it easier to read error message
This commit is contained in:
commit
f0b2af2f9d
1 changed files with 1 additions and 1 deletions
|
@ -414,7 +414,7 @@ class Base:
|
||||||
def _validate_variable_keys(ds):
|
def _validate_variable_keys(ds):
|
||||||
for key in ds:
|
for key in ds:
|
||||||
if not isidentifier(key):
|
if not isidentifier(key):
|
||||||
raise TypeError("%s is not a valid variable name" % key)
|
raise TypeError("'%s' is not a valid variable name" % key)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if isinstance(ds, dict):
|
if isinstance(ds, dict):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue