1. Ludia
  2. Untitled project
  3. dynamodb-mapper
Issue #15 resolved

More useful error messages

Éric Araujo
created an issue

{{{ File "dynamodb_mapper/model.py", line 153, in _get_default_value raise TypeError("Expected default value of type {}, got: {}".format(schema_type, type(default))) TypeError: Expected default value of type <type 'unicode'>, got: <type 'str'> }}}

I’d like this error message to give me the key name and the value, e.g. TypeError: Expected default value of type <type 'unicode'> for field 'whatever', got: <type 'str'> (value: 'blah')