aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-02-28 10:43:39 +0100
committerPřemysl Eric Janouch <p@janouch.name>2022-02-28 10:44:32 +0100
commit6353dd156a9794499781b6f26be7b13b227b5628 (patch)
treea368444f7c58a4ccdbded0c65278bd595132dcb0
parent7a2ea02c8d5c96c70f6d7098d316b12c00e7c9fc (diff)
downloadhaven-6353dd156a9794499781b6f26be7b13b227b5628.tar.gz
haven-6353dd156a9794499781b6f26be7b13b227b5628.tar.xz
haven-6353dd156a9794499781b6f26be7b13b227b5628.zip
hswg: log the error message on :date: parse fail
-rw-r--r--hswg/main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/hswg/main.go b/hswg/main.go
index 88ed486..9fe3fd7 100644
--- a/hswg/main.go
+++ b/hswg/main.go
@@ -128,6 +128,7 @@ func (e *Entry) Published() *time.Time {
} else if t, err := time.Parse("2006-01-02", d); err == nil {
return &t
} else {
+ log.Printf("%s: date: %s\n", e.PathSource, err)
return nil
}
}