]> Cypherpunks repositories - gostls13.git/commit
time: return informative errors when failing to load timezone data.
authorDavid Symonds <dsymonds@golang.org>
Fri, 6 Feb 2015 05:58:07 +0000 (16:58 +1100)
committerDavid Symonds <dsymonds@golang.org>
Sun, 8 Feb 2015 22:20:37 +0000 (22:20 +0000)
commit8bf13838eb21921bf02e2970f8f8d3f2a745d982
treeb42be7193c197d3bcede6faa6f11e3f59be8baa1
parenta35181ba7fcb9e62e3f867292501a49e5d1a8b0c
time: return informative errors when failing to load timezone data.

If we cannot load timezone information for a reason other than the
zoneinfo file not existing, return it since that will be much more
useful in debugging failures than "unknown time zone XYZ".

Fixes #9723.

Change-Id: I3aa5774859cec28e584d16bcc1fef0705d95288c
Reviewed-on: https://go-review.googlesource.com/3984
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/time/sys_unix.go
src/time/zoneinfo_plan9.go
src/time/zoneinfo_unix.go
src/time/zoneinfo_windows.go