-
Notifications
You must be signed in to change notification settings - Fork 164
Closed
Labels
cliChanges that impact CLI functionalityChanges that impact CLI functionalitygoPull requests that update go codePull requests that update go codegood first issueGood for newcomersGood for newcomers
Description
Description:
Convert all fmt.Errorf(..., %v, err) to fmt.Errorf(..., %w, err) to enable proper error chain wrapping. This improves error debugging throughout the codebase. There are multiple parts of the codebase which have this issue.
Background:
- Codebase uses a mix of %w and %v.
- Using
%wenableserrors.Is()anderrors.As()checks
Tasks:
- Replace all instances of %v with %w in the CLI when handling error types.
Pattern:
// BEFORE:
return fmt.Errorf("failed to create manager: %v", err)
// AFTER:
return fmt.Errorf("failed to create manager: %w", err)Acceptance Criteria:
- All instances of
%vconverted to%wwhen handling error types - All tests pass
Metadata
Metadata
Assignees
Labels
cliChanges that impact CLI functionalityChanges that impact CLI functionalitygoPull requests that update go codePull requests that update go codegood first issueGood for newcomersGood for newcomers