tpagectl: clientFromContext wrapper still swallows error #549
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
thwap/thwap-pagesd#549
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
clientFromContextincmd/tpagectl/main.gostill swallows the error fromclient.FromContextand returnsnil, keeping the #543 nil-footgun alive for anyone using the main-package accessor.Now that
client.FromContextreturns(*Client, error), recommend removing theclientFromContextwrapper and updating its only usage (TestClientWiringHealthincmd/tpagectl/main_test.go) to callclient.FromContextand handle the error directly.Ref: PR #548
Fixed in #634: the
clientFromContextwrapper now propagates the error fromclient.FromContext, andTestClientWiringHealthhandles it.