Skip to content

Commit c09e5f6

Browse files
Add type to checker messages
* Add a type to checker messages, so the results can be interpreted better. Especially the difference between warning and errors can be used.
1 parent 19d39b8 commit c09e5f6

File tree

5 files changed

+182
-110
lines changed

5 files changed

+182
-110
lines changed

cmd/csaf_checker/links.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ func (pgs pages) listed(path string, pro *processor) (bool, error) {
5353
pro.badDirListings.use()
5454

5555
if err != nil {
56-
pro.badDirListings.add("Fetching %s failed: %v", base, err)
56+
pro.badDirListings.error("Fetching %s failed: %v", base, err)
5757
return false, errContinue
5858
}
5959
if res.StatusCode != http.StatusOK {
60-
pro.badDirListings.add("Fetching %s failed. Status code %d (%s)",
60+
pro.badDirListings.error("Fetching %s failed. Status code %d (%s)",
6161
base, res.StatusCode, res.Status)
6262
return false, errContinue
6363
}

0 commit comments

Comments
 (0)