Make the invalid date/time format error message more helpful
authorAsk Bjørn Hansen <ask@develooper.com>
Sun, 16 Feb 2014 09:21:49 +0000 (01:21 -0800)
committerspf13 <steve.francia@gmail.com>
Tue, 18 Feb 2014 23:44:32 +0000 (18:44 -0500)
hugolib/metadata.go

index a398fffe892df1caebdcc100825011650618b6c1..323acdbc53b1f1e1bc03353e4a77df2a10c06ada 100644 (file)
@@ -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")
        }