From c3445c69b5c1be2794218b527893365b427edeb3 Mon Sep 17 00:00:00 2001 From: Ben Boyter Date: Thu, 16 Dec 2021 16:08:51 +1100 Subject: [PATCH] add error output for formatter --- SCC-OUTPUT-REPORT.html | 20 ++++++++++---------- processor/formatters.go | 6 ++++-- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/SCC-OUTPUT-REPORT.html b/SCC-OUTPUT-REPORT.html index ba086759..0799407e 100644 --- a/SCC-OUTPUT-REPORT.html +++ b/SCC-OUTPUT-REPORT.html @@ -12,12 +12,12 @@ Go 36 - 8927 - 1434 + 8929 + 1433 425 - 7068 - 1426 - 352834 + 7071 + 1428 + 352948 Java 24 @@ -607,11 +607,11 @@ Total 176 - 26777 - 3032 + 26779 + 3031 1761 - 21984 - 2412 - 1810432 + 21987 + 2414 + 1810546 \ No newline at end of file diff --git a/processor/formatters.go b/processor/formatters.go index 878f71c0..05870bf8 100644 --- a/processor/formatters.go +++ b/processor/formatters.go @@ -646,9 +646,11 @@ func fileSummarizeMulti(input chan *FileJob) string { str.WriteString(val) str.WriteString("\n") } else { - _ = ioutil.WriteFile(t[1], []byte(val), 0600) + err := ioutil.WriteFile(t[1], []byte(val), 0600) + if err != nil { + fmt.Println(fmt.Sprintf("%s unable to be written to for format %s", t[1], t[0])) + } } - } }