-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Improve error messages for method chains #31365
Copy link
Copy link
Closed
Labels
Domain: Error MessagesThe issue relates to error messagingThe issue relates to error messagingExperience EnhancementNoncontroversial enhancementsNoncontroversial enhancementsFixedA PR has been merged for this issueA PR has been merged for this issueGood First IssueWell scoped, documented and has the green lightWell scoped, documented and has the green lightHelp WantedYou can do thisYou can do this
Milestone
Metadata
Metadata
Assignees
Labels
Domain: Error MessagesThe issue relates to error messagingThe issue relates to error messagingExperience EnhancementNoncontroversial enhancementsNoncontroversial enhancementsFixedA PR has been merged for this issueA PR has been merged for this issueGood First IssueWell scoped, documented and has the green lightWell scoped, documented and has the green lightHelp WantedYou can do thisYou can do this
Type
Fields
Give feedbackNo fields configured for issues without a type.
Search Terms
error call chain fluent api
Suggestion
In call chains some errors like TS2554 ("Expected x arguments, but got y") are reported for the whole call chain.
Example:
In this case the error is reported (starting) at line 5 where the actual error is in line 14.
Suggestion: Just highlight the concerned (last) method invocation in this case.
Use Cases
Checklist
My suggestion meets these guidelines: