diff --git a/pkg/dependency/parser/java/pom/pom.go b/pkg/dependency/parser/java/pom/pom.go index 6a2a3148f322..eb3e9ff7cc86 100644 --- a/pkg/dependency/parser/java/pom/pom.go +++ b/pkg/dependency/parser/java/pom/pom.go @@ -340,7 +340,7 @@ func (deps *pomDependencies) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) er // Decode the 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() // tag ends