Skip to content

BUG: fmt.Errorf chain '%w: %v' loses original cause in embedded loader #1051

@andrinoff

Description

@andrinoff

Describe the bug

In i18n/loader.go:15:

return fmt.Errorf("%w: embedded load failed: %v", ErrLoadFailed, err)

Same pattern as the parser: the underlying load error is stringified and dropped from the chain.

Expected behavior

Wrap both errors with %w.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomers

Type

No type

Projects

Status

In review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions