Skip to content

Improve "Invalid TValue" error message #4047

@justinormont

Description

@justinormont

When throwing "Invalid TValue" runtime errors, we tell users which type they entered, but don't tell the user the type that is needed. We tell them their current type is wrong, but not the right type.

There are current 23 places we throw this error. Our most common is when calling a GetGetter().

The one I'm hitting at the moment:

throw Ch.Except("Invalid TValue: '{0}'", typeof(TValue));

Task:

To make this more actionable, we should tell the user which type is needed for the column type.

Metadata

Metadata

Labels

P1Priority of the issue for triage purpose: Needs to be fixed soon.enhancementNew feature or requestusabilitySmoothing user interaction or experience

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions