Skip to content

Commit

Permalink
add error output for formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
boyter committed Dec 16, 2021
1 parent 47d17cf commit c3445c6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
20 changes: 10 additions & 10 deletions SCC-OUTPUT-REPORT.html
Expand Up @@ -12,12 +12,12 @@
<tbody><tr>
<th>Go</th>
<th>36</th>
<th>8927</th>
<th>1434</th>
<th>8929</th>
<th>1433</th>
<th>425</th>
<th>7068</th>
<th>1426</th>
<th>352834</th>
<th>7071</th>
<th>1428</th>
<th>352948</th>
</tr><tr>
<th>Java</th>
<th>24</th>
Expand Down Expand Up @@ -607,11 +607,11 @@
<tfoot><tr>
<th>Total</th>
<th>176</th>
<th>26777</th>
<th>3032</th>
<th>26779</th>
<th>3031</th>
<th>1761</th>
<th>21984</th>
<th>2412</th>
<th>1810432</th>
<th>21987</th>
<th>2414</th>
<th>1810546</th>
</tr></tfoot>
</table></body></html>
6 changes: 4 additions & 2 deletions processor/formatters.go
Expand Up @@ -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]))
}
}

}
}

Expand Down

0 comments on commit c3445c6

Please sign in to comment.