mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 08:18:30 +00:00
Make the invalid date/time format error message more helpful
This commit is contained in:
1 parent
1dbed5ee06
commit
0bfe9276c2
1 file changed
+1
-1
+1
-1
@@ -17,7 +17,7 @@ func interfaceToTime(i interface{}) time.Time {
|
|||||||
if e == nil {
|
if e == nil {
|
||||||
return d
|
return d
|
||||||
}
|
}
|
||||||
errorf("Invalid Time/Date format")
|
errorf("Could not parse Date/Time format:", e)
|
||||||
default:
|
default:
|
||||||
errorf("Only Time is supported for this key")
|
errorf("Only Time is supported for this key")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user