Skip to content

Commit c3445c6

Browse files
committed
add error output for formatter
1 parent 47d17cf commit c3445c6

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

SCC-OUTPUT-REPORT.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
<tbody><tr>
1313
<th>Go</th>
1414
<th>36</th>
15-
<th>8927</th>
16-
<th>1434</th>
15+
<th>8929</th>
16+
<th>1433</th>
1717
<th>425</th>
18-
<th>7068</th>
19-
<th>1426</th>
20-
<th>352834</th>
18+
<th>7071</th>
19+
<th>1428</th>
20+
<th>352948</th>
2121
</tr><tr>
2222
<th>Java</th>
2323
<th>24</th>
@@ -607,11 +607,11 @@
607607
<tfoot><tr>
608608
<th>Total</th>
609609
<th>176</th>
610-
<th>26777</th>
611-
<th>3032</th>
610+
<th>26779</th>
611+
<th>3031</th>
612612
<th>1761</th>
613-
<th>21984</th>
614-
<th>2412</th>
615-
<th>1810432</th>
613+
<th>21987</th>
614+
<th>2414</th>
615+
<th>1810546</th>
616616
</tr></tfoot>
617617
</table></body></html>

processor/formatters.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -646,9 +646,11 @@ func fileSummarizeMulti(input chan *FileJob) string {
646646
str.WriteString(val)
647647
str.WriteString("\n")
648648
} else {
649-
_ = ioutil.WriteFile(t[1], []byte(val), 0600)
649+
err := ioutil.WriteFile(t[1], []byte(val), 0600)
650+
if err != nil {
651+
fmt.Println(fmt.Sprintf("%s unable to be written to for format %s", t[1], t[0]))
652+
}
650653
}
651-
652654
}
653655
}
654656

0 commit comments

Comments
 (0)