Revision e1ebbfcf lib/opcodes.py
b/lib/opcodes.py | ||
---|---|---|
469 | 469 |
if set_defaults or hasattr(self, attr_name): |
470 | 470 |
attr_val = getattr(self, attr_name) |
471 | 471 |
if not test(attr_val): |
472 |
logging.error("OpCode %s, parameter %s, has invalid type %s/value %s"
|
|
473 |
" expecting type %s", |
|
472 |
logging.error("OpCode %s, parameter %s, has invalid type %s/value" |
|
473 |
" '%s' expecting type %s",
|
|
474 | 474 |
self.OP_ID, attr_name, type(attr_val), attr_val, test) |
475 | 475 |
raise errors.OpPrereqError("Parameter '%s.%s' fails validation" % |
476 | 476 |
(self.OP_ID, attr_name), |
Also available in: Unified diff