You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to achieve useful error messages like the crate docs suggest is possible:
error: invalid type: found string "hi", expected u16
--> key `debug.port` in TOML file App.toml
I am using the Toml provider and calling figment.extract::<MyType>().
However in the invalid_type case, the Error seems to be generated without metadata or path:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I would like to achieve useful error messages like the crate docs suggest is possible:
I am using the
Toml
provider and callingfigment.extract::<MyType>()
.However in the invalid_type case, the Error seems to be generated without metadata or path:
Have I missed something?
figment.find_metadata(path)
is correct for the field in question.Beta Was this translation helpful? Give feedback.
All reactions