dacite icon indicating copy to clipboard operation
dacite copied to clipboard

Better error messages for nested structs

Open virtuald opened this issue 1 year ago • 0 comments

  • dicts now have the key name in them
  • lists/tuples now have the index in them

Old error message:

dacite.exceptions.WrongTypeError: wrong value type for field "t.t2.name" - should be "str" instead of value "1" of type "int"

New error message:

dacite.exceptions.WrongTypeError: wrong value type for field "t[name].t2[0].name" - should be "str" instead of value "1" of type "int"

virtuald avatar Mar 07 '23 01:03 virtuald