Skip to content

Commit

Permalink
fix: Printf format err (aquasecurity#6198)
Browse files Browse the repository at this point in the history
Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
  • Loading branch information
testwill authored Feb 26, 2024
1 parent eef7c4f commit 876ab84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/dependency/parser/java/pom/pom.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ func (deps *pomDependencies) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) er
// Decode the <dependency> element
err = d.DecodeElement(&dep, &t)
if err != nil {
return xerrors.Errorf("Error decoding dependency: %w")
return xerrors.Errorf("Error decoding dependency: %w", err)
}

dep.EndLine, _ = d.InputPos() // <dependency> tag ends
Expand Down

0 comments on commit 876ab84

Please sign in to comment.