]> Cypherpunks repositories - gostls13.git/commitdiff
time: return ENOENT if a zoneinfo zip file is not found
authorMax Ushakov <ushmax@gmail.com>
Fri, 21 Dec 2018 14:53:33 +0000 (17:53 +0300)
committerIan Lance Taylor <iant@golang.org>
Mon, 24 Dec 2018 19:25:18 +0000 (19:25 +0000)
Updates #20969

Change-Id: Ibcf0bf932d5b1de67c22c63dd8514ed7a5d198fb
Reviewed-on: https://go-review.googlesource.com/c/155538
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/time/zoneinfo_read.go

index b495217c0686fdab7c466c26ca7063e0133ffba2..d8d4070d5b51a1661344c11cf0e0fa0df39c920d 100644 (file)
@@ -271,7 +271,7 @@ func get2(b []byte) int {
 func loadTzinfoFromZip(zipfile, name string) ([]byte, error) {
        fd, err := open(zipfile)
        if err != nil {
-               return nil, errors.New("open " + zipfile + ": " + err.Error())
+               return nil, err
        }
        defer closefd(fd)