From 8c35d6fe7773911e54cee522b407ccab7215f843 Mon Sep 17 00:00:00 2001 From: Sascha Brawer Date: Wed, 29 May 2024 08:03:10 +0200 Subject: [PATCH] Log JSON parsing errors with path of malformed file --- cmd/qrank-builder/wikisites.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/qrank-builder/wikisites.go b/cmd/qrank-builder/wikisites.go index 7928e9f..1a5fb0b 100644 --- a/cmd/qrank-builder/wikisites.go +++ b/cmd/qrank-builder/wikisites.go @@ -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 }