Skip to content

Commit

Permalink
Log JSON parsing errors with path of malformed file
Browse files Browse the repository at this point in the history
  • Loading branch information
brawer committed May 29, 2024
1 parent a30c27e commit 8c35d6f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/qrank-builder/wikisites.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ func readNamespaces(site *WikiSite, dumps string) error {
}
var si siteinfo
if err := json.Unmarshal(data, &si); err != nil {
logger.Printf("malformed json: %s", path)
return err
}

Expand Down

0 comments on commit 8c35d6f

Please sign in to comment.