Commits

Andy Mikhailenko committed d08dfeb

Improve error message

Comments (0)

Files changed (1)

monk/validation.py

     #missing = spec_keys - data_keys
 
     if unknown and not rule.dict_allow_unknown_keys:
-        raise errors.UnknownKey('Unknown keys: {0}'.format(
-            ', '.join(compat.safe_str(x) for x in unknown)))
+        raise errors.UnknownKey('"{0}"'.format(
+            '", "'.join(compat.safe_str(x) for x in unknown)))
 
     for key in spec_keys | data_keys:
         subrule = canonize(rule.inner_spec.get(key))