Currently the error message doesn't say which key is affected, which
makes it kind of useless.
Signed-off-by: Petr Pudlak <pudlak@google.com>
Signed-off-by: Klaus Aehlig <aehlig@google.com>
Reviewed-by: Klaus Aehlig <aehlig@google.com>
if ktype in (constants.VTYPE_STRING, constants.VTYPE_MAYBE_STRING):
if target[key] is None and ktype == constants.VTYPE_MAYBE_STRING:
- msg = "'None' is not a valid Maybe value. Use 'VALUE_HS_NOTHING'"
+ msg = ("'None' is not a valid Maybe value for '%s'. "
+ "Use 'VALUE_HS_NOTHING'") % (key, )
logging.warning(msg)
elif (target[key] == constants.VALUE_HS_NOTHING
and ktype == constants.VTYPE_MAYBE_STRING):