diff --git a/checks/raw/pinned_dependencies.go b/checks/raw/pinned_dependencies.go index 8f4ff9a7028..b0f3d03b321 100644 --- a/checks/raw/pinned_dependencies.go +++ b/checks/raw/pinned_dependencies.go @@ -131,7 +131,7 @@ func analyseCsprojLockedMode(path string, content []byte, args ...interface{}) ( } dl.Warn(&checker.LogMessage{ - Text: fmt.Sprintf("malformed csproj file: %e", err), + Text: fmt.Sprintf("malformed csproj file: %v", err), }) return true, nil } diff --git a/checks/raw/pinned_dependencies_test.go b/checks/raw/pinned_dependencies_test.go index b2e96f214a5..e9ba8406104 100644 --- a/checks/raw/pinned_dependencies_test.go +++ b/checks/raw/pinned_dependencies_test.go @@ -2141,7 +2141,7 @@ func TestCsProjAnalysis(t *testing.T) { _, err = analyseCsprojLockedMode(p, content, &r, &dl) if err != nil { - t.Errorf("unexpected error %e", err) + t.Errorf("unexpected error %v", err) return } if tt.expectErrorLogs {