Making TypeProviders easier: FS3033 needs base exception message #17249
Labels
Area-TypeProviders
Feature Improvement
Theme-Simple-F#
A cross-community initiative called "Simple F#", keeping people in the sweet spot of the language.
Milestone
When I'm using different type-providers (a lot) and they use external dependency dlls, which throw an error, the F# compiler throws generic
FS3033: The type provider '%s' reported an error: %s
The error is typically:
"The type initializer for 'some.dll' threw an exception."
What I would like to get is, if the inner-exception is not null (usually not) then
.GetBaseException().Message
of that too, like:FS3033: The type provider '%s' reported an error: %s ...with details: %s
The workaround most developers do:
The workaround I do:
A simple fix would already had kept many devs in F#.
The text was updated successfully, but these errors were encountered: