Skip to content

Commit 652d598

Browse files
ushakovianlancetaylor
authored andcommitted
time: return ENOENT if a zoneinfo zip file is not found
Updates #20969 Change-Id: Ibcf0bf932d5b1de67c22c63dd8514ed7a5d198fb Reviewed-on: https://go-review.googlesource.com/c/155538 Run-TryBot: Ian Lance Taylor <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent b32ee0a commit 652d598

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/time/zoneinfo_read.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ func get2(b []byte) int {
271271
func loadTzinfoFromZip(zipfile, name string) ([]byte, error) {
272272
fd, err := open(zipfile)
273273
if err != nil {
274-
return nil, errors.New("open " + zipfile + ": " + err.Error())
274+
return nil, err
275275
}
276276
defer closefd(fd)
277277

0 commit comments

Comments
 (0)