Skip to content

Commit

Permalink
wrap errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
hchienjo committed Feb 22, 2024
1 parent 6ecad9f commit ce50231
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion singledecoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func (c *SingleDecoder) Unmarshal(ctx context.Context, data []byte, x interface{
}
prog, err := c.getProgram(ctx, vt, wID)
if err != nil {
return nil, fmt.Errorf("cannot unmarshal: %v", err)
return nil, fmt.Errorf("cannot unmarshal: %w", err)
}
return unmarshal(nil, body, prog, v)
}
Expand Down

0 comments on commit ce50231

Please sign in to comment.