mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-25 15:58:53 +00:00
Make the invalid date/time format error message more helpful
This commit is contained in:
+1
-1
@@ -17,7 +17,7 @@ func interfaceToTime(i interface{}) time.Time {
|
||||
if e == nil {
|
||||
return d
|
||||
}
|
||||
errorf("Invalid Time/Date format")
|
||||
errorf("Could not parse Date/Time format:", e)
|
||||
default:
|
||||
errorf("Only Time is supported for this key")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user