From 876ab84b364238fbae9b53c9d9676873c6b89b4b Mon Sep 17 00:00:00 2001 From: guangwu Date: Mon, 26 Feb 2024 14:07:35 +0800 Subject: [PATCH] fix: Printf format err (#6198) Signed-off-by: guoguangwu --- pkg/dependency/parser/java/pom/pom.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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